Bash – Switching from zsh to bash on OS X, and back again

bashterminalzsh

I'm learning to develop in Rails, and have discovered the power of zsh. However, for some of my other tasks, I wish to use normal bash.

Although they are the same, I just feel comfortable with the lay out of bash in some situations.

How do I switch back and forth, or turn zsh on and off?

Best Answer

You can just use exec to replace your current shell with a new shell:

Switch to bash:

exec bash

Switch to zsh:

exec zsh

This won't affect new terminal windows or anything, but it's convenient.