Switching from zsh to bash on OSX, and back again?

vpoola88 picture vpoola88 · Apr 26, 2012 · Viewed 166.5k times · Source

So Im 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? Thanks!

Answer

larsks picture larsks · Apr 26, 2012

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.