Created
October 20, 2021 15:42
-
-
Save Nimamoh/966ae8895fe4819d77d1785d8da63567 to your computer and use it in GitHub Desktop.
Launch fish if parent process is not fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This launches fish if parent process is not fish. Not used anymore | |
if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" ]]; then | |
exec fish | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment