Skip to content

Instantly share code, notes, and snippets.

@Nimamoh
Created October 20, 2021 15:42
Show Gist options
  • Save Nimamoh/966ae8895fe4819d77d1785d8da63567 to your computer and use it in GitHub Desktop.
Save Nimamoh/966ae8895fe4819d77d1785d8da63567 to your computer and use it in GitHub Desktop.
Launch fish if parent process is not fish
# 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