To change the default shell to bash on macOS Catalina or Big Sur, follow these steps:
Open a terminal window.
Check if bash is already installed on your system by running the following command:
which bash
If bash is installed, this command will display the path to the bash executable. If bash is not installed, you will need to install it first. You can do this using the brew package manager:
brew install bash
/etc/shells file. To do this, use the echo command to append the path to the file:echo $(which bash) | sudo tee -a /etc/shells
chsh command and specify the path to the bash executable:chsh -s $(which bash)
After you have logged in again, your default shell will be set to bash.