If you are new to macOS or have been using a version below macOS Catalina, you would find that as you switch the Terminal prompt from zsh to bash, you get the message "The default interactive shell is now zsh.", you would see that the prompt does move to bash.
c2c@monterey ~ % 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$
To know more you can visit the link in the message: https://support.apple.com/kb/HT208050
Since macOS Catalina, the default login shell and the interactive shell for Mac devices is zsh (Z Shell)
Switching the default shell on macOS Monterey
- Go to Apple menu ,
- Select System Preferences..,
- Click on Users & Groups,
- Now click on the lock icon and enter your account name & password,
- Control-click (Right Click) on your user name or icon in the list of users and select Advanced Options,
- Now under Login shell - select the shell you want to use as default.
- Click on Ok
- /bin/bash
- /bin/tcsh
- /bin/sh
- /bin/csh
- /bin/zsh
- /bin/ksh
Note: You would see the warning: "Changing these settings might damage the account and prevent the user from logging in. You must restart the computer for the changes to these settings to take effect."
More Posts related to MacOS,
- How to show line numbers in Nano on Mac
- How to install Jupyter Notebook on macOS Sonoma
- How to Disable Remote Management using Mac Terminal
- Test internet speed using macOS Terminal command
- Docker Desktop needs privileged access macOS
- Google Search Hot Trends Screensaver for Mac OS X
- How to do calculations in Mac Terminal
- How to make TextEdit the default text Editor on Mac
- How to Show Full Website Address on Safari for Mac (Ventura/Sonoma)
- The Zsh Shell - Mac Tutorial
- Opening mac Terminal
- How to change the name of your Mac running on macOS Ventura 13
- How to find the Battery Cycle Count on macOS Ventura
- How to set an emoji as Zsh terminal prompt in macOS
- How to access Trash Folder using Mac Terminal Command
- macOS Ventura XCode Command Line Tools Installation
- Hide Bluetooth icon on Mac Menu Bar macOS Ventura 13
- How to run .sh file in Mac Terminal
- Terminal Command to get the list of available shells in macOS
- How to see Storage Information on macOS Ventura
- How to Go To /usr/local/bin on Mac Terminal?
- How to do screen recording on Mac
- How to Find File and Directory Size in Mac Terminal
- Open .bash_profile File in TextEdit using Terminal
- Remove Now Playing icon from macOS Big Sur Menu Bar
More Posts:
- How to Enable Cookies in Safari on Mac - MacOS
- How to Print the Name of a Variable in Python - Python
- Java 8 foreach loop code examples - Java
- Check DNS Lookup using Mac Terminal - MacOS
- How to know the current version of Java - Java
- macOS - cannot calculate MAC address: Using fd 9 hv_vm_create HV_ERROR [PHP XAMPP] - PHP
- Reduce the size of Tabs on Notepad++ - NotepadPlusPlus
- Notepad++ copy above line-example - NotepadPlusPlus