Getting the current interactive shell name

Published on 2024-06-09 • Modified on 2024-06-09

This snippet shows how to get the current interactive shell name. We can use this $SHELL variable, which should be available in every unix-like shell.


echo $SHELL
// outputs "/opt/homebrew/bin/fish"

 More on Stackoverflow  Random snippet

  Work with me!


Call to action

Did you like this post? You can help me back in several ways: (use the "reply" link on the right to comment or to contact me )

Thank you for reading! And see you soon on Strangebuzz! 😉

COil