Since moving to OS X in 2011/2012 for work to do all my development, I’ve moved Homebrew to a must-have. Adding it here for archiving purposes.
From a terminal:
1. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. brew tap caskroom/cask
The 2nd point is to install Homebrew Cask as well, which extends Homebrew’s functionality.
Now get brewing!