Install homebrew via https://brew.sh/ and then run:
$ cd brew
$ brew bundle install
$ cd osx
$ ./osx-defaults.sh
Install Oh My Zsh via https://github.com/ohmyzsh/ohmyzsh/wiki and overwrite the shell config file:
$ sudo chmod -R 755 /usr/local/share/zsh
$ sudo chown -R root:staff /usr/local/share/zsh
$ mv ~/.zshrc ~/.zshrc.bak
$ cp zsh/.zshrc ~/.zshrc
Install the Powerline fonts and configure iTerm2 to use them (Preferences -> Profiles -> Text -> Font -> "Meso LG M for powerline")
$ git clone https://github.com/powerline/fonts.git
$ cd fonts
$ ./install.sh
$ cd .. && rm -rf fonts
$ cp -r git/* ~/
$ cp -r bin/* /usr/local/bin/