You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Eliminate annoying warning on bash shell login

I prefer a bash shell. How can I get rid of the annoying notification (below) each time I log in? It seems to be coded into the /bin/bash binary.


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 https://support.apple.com/kb/HT208050.

MacBook Air 13″, macOS 10.14

Posted on Oct 26, 2020 8:52 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 26, 2020 8:57 AM

LKoch wrote:

I prefer a bash shell. How can I get rid of the annoying notification (below) each time I log in? It seems to be coded into the /bin/bash binary.

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 https://support.apple.com/kb/HT208050.



To silence this warning, you can add this command to ~/.bash_profile or ~/.profile:

export BASH_SILENCE_DEPRECATION_WARNING=1



6 replies
Question marked as Top-ranking reply

Oct 26, 2020 8:57 AM in response to LKoch

LKoch wrote:

I prefer a bash shell. How can I get rid of the annoying notification (below) each time I log in? It seems to be coded into the /bin/bash binary.

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 https://support.apple.com/kb/HT208050.



To silence this warning, you can add this command to ~/.bash_profile or ~/.profile:

export BASH_SILENCE_DEPRECATION_WARNING=1



Oct 26, 2020 9:09 AM in response to LKoch

LKoch wrote:

Thank you! While it's fine to have a new default, please don't eliminate the bash shell from MacOS. It is a popular shell and it is the longtime default in Linux. Those of us who go back and forth, and/or who have been using bash for decades, appreciate having it available.


I do not see this happening.


You can see all Shells available from the Terminal.app copy and paste:

cat /etc/shells

Oct 26, 2020 9:12 AM in response to LKoch

Of course, Apple has not eliminated Bash 3.2.57 (yet), but on Linux, Bash is now up to version 5.0 and has left Apple's ancient, syntax limited version in the dust. Unless of course, you brew install current bash in /usr/local/bin, or use another package manager to do the same, and then shift your PATH to pick up that current Bash first.

Eliminate annoying warning on bash shell login

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.