Getting the current interactive shell name

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

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


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

 More on Stackoverflow  Random snippet

  Work with me!