Skip to content

Instantly share code, notes, and snippets.

@Nimamoh
Created October 20, 2021 15:42
Embed
What would you like to do?
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