Bash and Mac

How to change default shell to bash on Macos Catalina

  • check your options and make sure bash is listed

/etc/shells

  • switch to bash

chsh -s /bin/bash

  • close your session and reopen

Check your shell

echo $SHELL

What's your Bash version?

bash --version

 Upgrade Bash

brew install bash

Add the new version to /etc/shells

echo /usr/local/bin/bash >> /etc/shells

  • switch to new bash (same as above but in new directory)

chsh -s /usr/local/bin/bash