Skip to content

Instantly share code, notes, and snippets.

@Robdel12
Created August 27, 2016 05:46
Show Gist options
  • Save Robdel12/3403f696c886f6db86c8e6c8ffc25a5c to your computer and use it in GitHub Desktop.
Save Robdel12/3403f696c886f6db86c8e6c8ffc25a5c to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Check for Homebrew, install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
# brew update
# Binaries
binaries=(
emacs --cocoa
trash
node
ruby
tree
ack
hub
git
)
# Install binaries
echo "Installing binaries..."
brew install ${binaries[@]}
# Cleanup
brew cleanup
# Install brew-cask
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
# Casks
casks=(
alfred
dropbox
firefoxdeveloperedition
flux
virtualbox
karabiner
)
# Install casks to /Applications
echo "Installing casks..."
brew cask install --appdir="/Applications" ${casks[@]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment