macOS: Hide "default interactive shell is now zsh" in bash

5 months ago macos 0 comments

With macOS Catalina, Apple changed the Terminal's default shell from bash to zsh. If you want to stay with the bash, you now always get a banner telling you to move to zsh:

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit

This was one of the first things I noticed when switching from Mojave to Catalina. Fixing this, however, is very easy:

echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile

Setting that environment variable is enough to make it shut up about zsh.


Add a comment

Please note: By submitting your comment, you agree that it will be stored and may be published on this website.