Skip to content

How to Change the macOS Shell to Bash

Switch to Bash (system Bash):

chsh -s /bin/bash

Close and reopen Terminal, or log out and sign back in.

If you use Homebrew Bash, add it and switch to it:

echo /opt/homebrew/bin/bash | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/bash

Check the current shell:

echo $SHELL

Switch back to zsh (macOS default):

chsh -s /bin/zsh