Move from Zsh to Bash shell macOS


To move from the Zsh shell on macOS to Bash, all you do is type bash on the Terminal prompt. Let's see it by an example,


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$ 

As you can see that I switched from % (Zsh) to $ (Bash) just by tying the bash command.



✌️As Zsh is the default shell for macOS since Catalina, you will see the alert message when you switch to bash saying the default shell is zsh. To get back to Zsh, yes you got it right! Just type zsh



Move from Zsh to Bash Shell macOS Terminal Example

If you permanently want to move from Zsh to bash prompt follow this post - https://code2care.org/macos/macos-monterey-when-switch-to-bash-the-default-interactive-shell-is-now-zsh

This post is not yet updated for macOS 13 Ventura
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.