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.
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
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:
Whooohoooo!
Make sure to keep things current by periodically running a:
$ sudo port selfupdate