Automate OSX Configuration With Brewfile

I started using Brewfile recently to manage the applications on my OSX machines. I found it to be quite helpful and definitely save me a lot of configuration time.

Similar to how Gemfile is for ruby app, Brewfile is basically a file where I can define the dependencies or applications used on my machine.

As an example, here's what my Brewfile looks like:

# Taps
tap 'caskroom/cask'
tap 'homebrew/bundle'
tap 'homebrew/core'

cask_args appdir: '/Applications'

# Formulae

brew 'coreutils'
brew 'git'
brew 'openssl'
brew 'vim'
brew 'zsh'
brew 'antigen'
brew 'tmux'
brew 'wget'
brew 'rbenv'
brew 'imagemagick'
brew 'nvm'
brew 'cmake'
brew 'ninja'
brew 'tmux'
brew 'postgresql'
brew 'z'

# Casks

cask 'alfred'
cask 'google-chrome'
cask 'iterm2'
cask 'slack'
cask 'sourcetree'
cask 'transmission'
cask 'visual-studio-code'
cask 'vlc'
cask 'spotify'
cask 'realm-browser'
cask 'dropbox'
cask 'kdiff3'
cask 'notion'
cask 'the-unarchiver'
cask 'origami-studio'
cask 'rescuetime'

And to install all of these applications, I simply have to run the following command into the terminal:

brew bundle

With that, brew will install the applications instantly without me having to install it manually one by one. Pretty neat right?

Take a look at my dotfiles for more configurations. ✌️