#!/bin/bash #------------------------------- # Check OS #------------------------------- if [ $(uname -s) != "Darwin" ]; then echo "This should only run on Mac OS X." exit 1 fi #------------------------------- #------------------------------- # Install Homebrew if missing #------------------------------- if [ ! -x /usr/local/bin/brew ]; then ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" fi #------------------------------- #------------------------------- # Install the basics #------------------------------- xargs brew install <