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.

Why am I asked about changing my default interactive shell?

Having connected an external drive to my PC a Terminal window opened with the following text:


Last login: Thu Mar 3 14:29:13 on ttys000


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.


What does this mean?


MacBook Air 13″, macOS 11.6

Posted on Mar 4, 2022 12:13 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 4, 2022 5:10 AM

The connection of an external drive to your Mac should not open a Terminal window without that being a deliberate act on your part.


Since 2007, Apple shipped the same Bash shell version that was the default for Terminal windows. Apple has switched to the MIT licensed, modern Zsh shell as its strategic supported SHELL product because the GPL3 licensing terms for newer Bash versions are unacceptable to Apple.


If you want to continue using the ancient default Bash shell in the Terminal, you can set the following in your Bash dot file in your home directory:


In /Users/yourname/.bash_profile, add the following:

export BASH_SILENCE_DEPRECATION_WARNING=1


and the next time the Terminal opens that changing your default shell message will not be present.


If you do decide to switch to the Zsh shell, run that indicated command in the Terminal, but you will need to set at minimum your PATH and terminal prompt in a new startup file (.zshrc) as the Zsh shell does not read the old Bash startup file contents. If you don't do any shell script programming, you probably won't notice a difference in using the Zsh shell, other than the default prompt is different.

2 replies
Question marked as Top-ranking reply

Mar 4, 2022 5:10 AM in response to gmacwil2586

The connection of an external drive to your Mac should not open a Terminal window without that being a deliberate act on your part.


Since 2007, Apple shipped the same Bash shell version that was the default for Terminal windows. Apple has switched to the MIT licensed, modern Zsh shell as its strategic supported SHELL product because the GPL3 licensing terms for newer Bash versions are unacceptable to Apple.


If you want to continue using the ancient default Bash shell in the Terminal, you can set the following in your Bash dot file in your home directory:


In /Users/yourname/.bash_profile, add the following:

export BASH_SILENCE_DEPRECATION_WARNING=1


and the next time the Terminal opens that changing your default shell message will not be present.


If you do decide to switch to the Zsh shell, run that indicated command in the Terminal, but you will need to set at minimum your PATH and terminal prompt in a new startup file (.zshrc) as the Zsh shell does not read the old Bash startup file contents. If you don't do any shell script programming, you probably won't notice a difference in using the Zsh shell, other than the default prompt is different.

Why am I asked about changing my default interactive shell?

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