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
Written by Lincoln de Sousa
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#