Short Tip: determine current shell

shell.png
To figure out the current shell you’re using, like bash, zsh or sh, just call ps -p $$:

ps -p $$ | tail -1 | awk '{print $NF}'

Pretty helpful if you’re playing with different shells at the same time.

Advertisements