Big Sur - The default interactive shell is now zsh.

Message in Terminal received:


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.


I looked at the link info. but I need step by step instruction on how to make this change. Please provide, thanks.


iMac 24″, macOS 11.6

Posted on Dec 26, 2021 1:48 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 26, 2021 2:20 PM

It’s actually easier than that:

  1. Open System Preferences
  2. Click Users & Groups
  3. Click the padlock 🔓 to unlock
  4. Right-Click your admin name
  5. Click Advanced Options…
  6. Click the dropdown menu under Login shell: to change the default for the Terminal.
21 replies

Dec 27, 2021 6:18 PM in response to Z2061

Z2061 wrote:

I wasn't aware that it was actively used, but I recently recd. a message on my desktop indicating this in relation to my Sonos speaker system. So I assume the Sonos system needs the shell changed. It that right?

No, it didn't. Even though you changed your default shell, it is still using the same shell it did before.

It runs some shell script, and when it does that message appears because you haven't changed yours.

You can either disable the message or upgrade your default shell so you don't receive the message.

Dec 28, 2021 5:01 PM in response to MrHoffman

MrHoffman wrote:

If some Sonos app is causing this message to be displayed, I’d not want to change the shell without checking first with Sonos support, as it’s possible that Sonos is actually dependent on bash.

That's not what the "default shell" means.

Shell scripts direct which shell to use at the top of the script. It doesn't matter what the user's default shell happens to be.

Dec 28, 2021 5:02 PM in response to terryb

terryb wrote:

Good point @MrHoffman and it certainly wouldn't hurt to ask Sonos support, but the way I read the OP's message was that it was Sonos prompting for the shell update. I could be misreading it and you're a Level 9 Jedi so I defer to you. :)

That isn't a reason to not do it, but you can leave it as bash and hide the warning.

https://apple.stackexchange.com/questions/371997/suppressing-the-default-interactive-shell-is-now-zsh-message-in-macos-catalina

Dec 28, 2021 5:42 PM in response to Barney-15E

Barney-15E wrote:


MrHoffman wrote:

If some Sonos app is causing this message to be displayed, I’d not want to change the shell without checking first with Sonos support, as it’s possible that Sonos is actually dependent on bash.
That's not what the "default shell" means.
Shell scripts direct which shell to use at the top of the script. It doesn't matter what the user's default shell happens to be.


You’re assuming the shebang is present. I’m not. It’s not mandatory.


If the app is showing the default shell prompt now, either there’s an update available for install, or the developer… could have handled this situation better.


The script is probably fine too, probably with the appropriate shebang, but it really shouldn’t even be displaying this shell output chatter. Hence checking with Sonos.


Unrelated to this bash to zsh migration, there’s another shebang-related wrinkle seemingly pending here too in some upcoming version, with /bin/sh switching from bash running as sh to the Catalina-included dash shell, though AFAIK that switch-over hasn’t happened yet.


(Full disclosure: their “recycle mode” scheme soured me on Sonos.)

Dec 28, 2021 5:58 PM in response to MrHoffman

Oh my gosh! This is what I see on my Mac...


"my user name - Sonos - Sonos - 78x44


Last login: Mon Dec 20 11:06:19 on console


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.

/Applications/Sonos.app/Contents/MacOS/Sonos ; exit;"


I assume this came from Apple, but I have no idea. This started on the December 24th and is still updating the message or error report today (or whatever this is called). And makes reference to error (404, 0x80000002)


Help!

Dec 29, 2021 11:23 AM in response to Z2061

Z2061 wrote:

Oh my gosh! This is what I see on my Mac...

"my user name - Sonos - Sonos - 78x44

Last login: Mon Dec 20 11:06:19 on console

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.
/Applications/Sonos.app/Contents/MacOS/Sonos ; exit;"

This shows that Sonos has done a terrible job with their app/script. It is very easy for the developer to make sure that the Terminal window is not shown (or is at least automatically closed) after the app/script runs. I did it years ago for a script I created which was run from the Finder.


Just because Apple changed the default shell and shows the notification does not mean a user has to do anything at all especially if the user is not familiar with the command line. Just ignore it.


If you are familiar with the command line, then you should already understand this notification especially after the helpful posts of the other contributors here.


Dec 29, 2021 11:32 AM in response to HWTech

Hello HWTech, I do not understand the command line, or anything else that I was receiving from Terminal. I have never seen this before. I do appreciate all of the comments, but as you know when you enter the Advanced Options under Users and Groups it warns of changing the settings. I dont want to do anything that messes up anything else. Hope this makes sense. Strange thing is that I have a new Mac (2021) running on Big Sur and I see that my Login Shell is /bin/bash yet I read that all new Macs should be running /bin/zsh. My Mac just shut down unexpectedly and all the messages from Terminal are now gone. Just confirm for me please if I need to change the Login shell or not. Thanks.

Dec 29, 2021 1:06 PM in response to Z2061

Z2061 wrote:

Strange thing is that I have a new Mac (2021) running on Big Sur and I see that my Login Shell is /bin/bash yet I read that all new Macs should be running /bin/zsh.

You will still have the Bash shell as the default if you migrated or restored from a backup of an older Mac. Only a clean install of macOS without migrating or restoring from an older pre-Catalina backup will have the default shell as "zsh". Since you don't use the Terminal or command line, you can just safely ignore the message and leave things as they are.


My Mac just shut down unexpectedly

If your Mac shut down unexpectedly, then you have some other problems. Run the Apple Diagnostics to see if any hardware issues are detected. To look for possible software issues run EtreCheck and post the report here using the "Additional Text" icon which looks like a piece of paper. If you give EtreCheck "Full Disk Access", then the summary of the recent logs will also be included which may contain useful information.


and all the messages from Terminal are now gone.

Just confirm for me please if I need to change the Login shell or not. Thanks.

No, you do not. However, you may have already changed the defaut shell to "zsh" which would make the Terminal notification message disappear.

Dec 29, 2021 1:09 PM in response to HWTech

HWTech wrote:

You will still have the Bash shell as the default if you migrated or restored from a backup of an older Mac. Only a clean install of macOS without migrating or restoring from an older pre-Catalina backup will have the default shell as "zsh". Since you don't use the Terminal or command line, you can just safely ignore the message and leave things as they are.


FWIW, it’s a little more nuanced: existing users and upgraded and migrated users with accounts created from the bash era will get bash. Newly created users will get zsh.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Big Sur - The default interactive shell is now zsh.

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