/ bootstrap / mac.sh
mac.sh
 1  #!/bin/sh -e
 2  if ! hash brew 2>/dev/null; then
 3      echo "Homebrew Not Installed\nDownloading..."
 4      ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
 5  fi
 6  
 7  brew install augeas
 8  brew install dialog
 9  
10  if ! hash pip 2>/dev/null; then
11      echo "pip Not Installed\nInstalling python from Homebrew..."
12      brew install python
13  fi
14  
15  if ! hash virtualenv 2>/dev/null; then
16      echo "virtualenv Not Installed\nInstalling with pip"
17      pip install virtualenv
18  fi