If you open the terminal after upgrading macOS to Catalina or Big Sur, you would see something like this when you move to the bash or other shells like csh, dash, ksh, sh, tcsh.
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
If you were using Mojave or below, Bash was the default shell, from Catalina onwards zsh (Z shell) is the default shell.
⛏️ Follow https://support.apple.com/kb/HT208050 to change the default shell other than zsh.
If you want to make bash as the default command line shell for macOS, you can do so by following the below steps,
- Click on the apple Logo on the menu bar ie.
- Choose System Preferences... menu option,
- Search for Users & Group,
- Click on the lock you see at the Botton left and enter your account name and password, or use fingerprint unlock,
- Do Control-click on your username and select Advanced Options,
- From the dropdown choose the shell your want to use and click OK.
How to suppress the message: "The default interactive shell is now zsh"
If you want to suppress this warning message every time that you move to any other prompt, you need to set the variable bash silence deprecation warning to a value of 1. i.e BASH_SILENCE_DEPRECATION_WARNING=1. You can do that by running the below command in the Terminal.
code2care@mac ~ % bash 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. bash-3.2$ zsh code2care@mac ~ % export BASH_SILENCE_DEPRECATION_WARNING=1 code2care@mac ~ % bash bash-3.2$
Note as this setting will get terminated as soon as to close your terminal, it is better to set this in the profile of zsh shell.
- Open Terminal app,
- On the ZSH Shell type nano ~/.zshrc
- Now append the variable details: export BASH_SILENCE_DEPRECATION_WARNING=1
- Press Control + X, followed by Y to save the file, press enter to exit Nano,
- Now type command source ~/.zshrc to apply changes.
Have Questions? Post them here!
- How to load zsh profile on opening shell terminal
- Set Python 3.8 as a default python version on macOS
- Show CPU and Memory Usage on macOS Menu Bar
- How to save macOS Terminal outputs as text file
- How to install wget on macOS
- Display ls command file sizes in KB (kilobytes) MB (megabytes) or GB (gigabytes) [Linux/macOS]
- How to Change Mouse Wheel Scroll Direction on Mac
- macOS R installation steps
- How to open terminal on Mac to run commands
- How to know your Mac Screen Resolution?
- Safari - Get HTTP Request Response Headers
- Opening mac Terminal
- bash: command not found error [macOS Terminal Linux, Unix or Windows]
- Add Bookmark macOS Safari
- How to check RAM details on Mac?
- How to install Java on macOS [Big Sur]
- How to Display Analog Clock on Mac Menu Bar
- How to remove app from Dock when closed [macOS Big Sur]
- How to add to PATH in macOS Big Sur
- Keyboard Shortcut to delete a file on a Mac [Macbook]
- How to increase macOS Terminal text font size (Big Sur)
- Permanently set $PATH variable in Mac Zsh shell
- Delete a Directory using Mac Terminal Command
- Remove Now Playing icon from macOS Big Sur Menu Bar
- How to find files taking up space on your Mac
- Resolving DNS_PROBE_FINISHED_NXDOMAIN Google Chrome Error - Google
- How to rerun last command in Zsh shell - HowTos
- [macOS] Change homepage Macbook Safari Browser - MacOS
- Android Studio SDK Build-tools 23 rc2 not getting installed - Android-Studio
- SharePoint - The URL is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web. - SharePoint