Last Updated: February 25, 2016
·
5.093K
· clarete

Changing your default shell in Mac OS X

So, if you want to test a different shell or just use a different bash version (like the one that comes with homebrew), you can achieve that by following these steps:

First, you must add the shell path to the list of valid shells (with your root account):

$ sudo -i
# echo /usr/local/bin/bash >> /etc/shells

And then, with your user account, do the following:

$ chsh -s /usr/local/bin/bash