Quick OS X Protip: Update bash

So bash 4.0 includes some pretty nifty options like autocd and cdspell, but OS X comes with a very old version. Here’s a one-liner to update bash and set as the default:

brew install bash;echo /usr/local/bin/bash|sudo tee -a /etc/shells;chsh -s /usr/local/bin/bash