Last active
September 17, 2016 16:33
-
-
Save sicruse/7a82b36412bf6f472b8080881b48debf to your computer and use it in GitHub Desktop.
Mac OS X Dev Env - curl https://gist.githubusercontent.com/sicruse/7a82b36412bf6f472b8080881b48debf/raw/07880b8d42120dee7b48431880b4159d0993fe03/bootstrap.sh | sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############ Set up ############ | |
sudo -v # ask for sudo upfront | |
############ Install XCode command line tools ############ | |
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress; | |
PROD=$(softwareupdate -l | | |
grep "\*.*Command Line" | | |
head -n 1 | awk -F"*" '{print $2}' | | |
sed -e 's/^ *//' | | |
tr -d '\n') | |
softwareupdate -i "$PROD" -v; | |
############ Install Homebrew ############ | |
# supress the need to press 'return' when in the install script runs. | |
yes '' | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
############ Install core packages ############ | |
brew install "wget" | |
brew install "git" | |
############ Tap up some caskrooms ############ | |
brew tap caskroom/versions | |
brew tap caskroom/fonts | |
brew tap caskroom/cask | |
############ Install some cask apps ############ | |
brew cask install --appdir='/Applications' 'sublime-text' | |
echo "And done..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment