Using Homebrew for OSX software

Getting your source on is a whole lot easier when using a package manager, for linux you might use Yum or APT, but on OSX Homebrew is the way to go. One perhaps lesser known gem about brew is using cask for applications.

Here’s a rundown on how I would set up a new mac.

# Install developer tools if you don't have them
xcode-select --install

# Install homebrew thanks to Ruby and cURL
ruby -e "$(curl -fsSL"

# Install three great command line tools with brew
brew install httpie tmux wrk

# Install cask so you can install apps
brew install caskroom/cask/brew-cask

# Install iterm2 and vlc in one command (hold the applause)
brew cask install iterm2 vlc

# By default it installs it in an odd location so I do...
brew cask install google-chrome --appdir=/Applications

# Or even better set the environment var in .zshenv or .bash_profile!
export HOMEBREW_CASK_OPTS="--appdir=/Applications"