Skip to content

Instantly share code, notes, and snippets.

@sicruse
Last active September 17, 2016 16:33
Show Gist options
  • Save sicruse/7a82b36412bf6f472b8080881b48debf to your computer and use it in GitHub Desktop.
Save sicruse/7a82b36412bf6f472b8080881b48debf to your computer and use it in GitHub Desktop.
#!/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