Gotta Mac? Wanna (more) current bash shell?

Mmmk. So I got this groovy new iMac and was excited to try out Terminal app, which is indeed cool, but for some bizarre reason the default system shell is a generation old. Meh.

Screen Shot 2016-08-08 at 2.40.39 PM

WTH? Ubuntu’s at 4.3.36!

Time for MacPorts! Go there, install the correct package for your version of OS X, and do a

$ xcode-select --install
$ sudo port install bash

Screen Shot 2016-08-08 at 2.50.22 PM

Ok, cool, so yeah now you have it, but you want it to be your default shell.

I suppose you could symlink /bin/bash to the Mac ports version, but that seems a little hardcore.

Let’s do it the “right” way:

$ sudo echo '/opt/local/bin/bash' >> /etc/shells
That adds the newer bash from Mac ports to the system.

To make it your default shell:

chsh -s /opt/local/bin/bash

Exit and restart terminal and you should see:

Screen Shot 2016-08-08 at 2.59.53 PM


Make sure to keep things current by periodically running a:

$ sudo port selfupdate

Leave a Reply

Your email address will not be published. Required fields are marked *