The Unix shell that is provided by the Terminal on Mac is now made default to Z shell (Zsh) instead of Bash since the transition to macOS Catalina.

Do note that Bash is not going away entirely and the only change with this new update is that the Zsh will appear as the standard login shell for any new account which even then you still have the option to switch back to bash whenever you rightly need to (which you may need will).

We will be not going over the differences and pros/cons of Zsh over Bash, as this Stack Overflow answer wonderfully explains it

However, this guide is written to help you remove and hide the ‘default interactive shell is now zsh’ message in Terminal on macOS, which you keep getting. This message, which thoroughly reads out as ‘The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh’ has been irritating many users ever since the switch to zsh was made. We will guide you step-by-step on how to hide the message as well as address any questions you may have along the way.

Without further ado, let’s jump right in. 

 

 

How to Hide the ‘default interactive shell is now zsh’ Message in Terminal on macOS: 5 Steps.

 

  1. Since this message appears whenever you try to use a shell that is other than zsh, such as bash, you will have to first and foremost switch over from zsh to bash to see the message pop up. The message is Apple’s way of telling you that the new default shell that you should consider switching to. 

Hide ‘default interactive shell is now zsh’ Message in Terminal on macOS

 

  1. Once you’ve switched over from zsh to bash, you will need to lookup for the .bash_profile file on your Mac system. You can access it by clicking on File (top-left) from the menu and then selecting Open, which you then from under Favourites select your Home folder (with the house icon).

Hide ‘default interactive shell is now zsh’ Message in Terminal on macOS

 

  1. From this Home folder, you will need to press your Command+Shift+Dot(.) keys to view your hidden files. This is because the .bash_profile is a hidden file that is not meant to be viewable to the general public. You should now be able to find the .bash_profile file from the list. Open the .bash_profile file using any text editor of your choice, although we will be using the preinstalled TextEdit app for this guide.
bash_profile file

 

Help! I can’t find the .bash_profile file on my Mac?

If you’re unable to locate the .bash_profile (~/.bash_profile) even after carrying out both Steps 2 & 3, then it’s most likely that the file doesn’t exist on your Mac. In such a case, you will need to look for .profile (~/.profile) file, which should appear in the list of files instead.

 

  1. When you open the .bash_profile file (or .profile file if the former does not exist for you), you will find that the file may or may not be empty depending on if you have made changes to the bash profile previously. Whether it is empty or not, all you have to do is just copy-paste the following line of code into the file and save it.

export BASH_SILENCE_DEPRECATION_WARNING=1

 

Hide ‘default interactive shell is now zsh’ Message in Terminal on macOS

 

  1. Lastly, you may restart your Terminal app, and you should find that it no longer shows the annoying ‘The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh’ message. You’re done!

If you ever decide to change your mind and you wish to have the message back, then reopen the .bash_profile (or .profile) file and remove the line of code that you had copy-pasted from Step 4. Make sure to save the changes, and you will find that the message will reappear.

 

Alternatively – The Quickest Way

If you seek a shortcut to the above solution, you can add the following lines of code right from your Terminal:

touch ~/.bash_profile

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

 

This way, you wouldn’t even need to go through all the above steps to access the file and such, saving you time. 🙂

We hope that this guide has helped hide ‘default interactive shell is now zsh message’ in Terminal on macOS. If you have questions, please feel free to leave a comment below, and we will love to help you out. ❤

 

If this guide helped you, please share it. 🙂