Skip to content

Instantly share code, notes, and snippets.

@systemist
Created January 31, 2016 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save systemist/6cd361c1e63c819e415e to your computer and use it in GitHub Desktop.
Save systemist/6cd361c1e63c819e415e to your computer and use it in GitHub Desktop.
#!/bin/sh
# 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
echo "Setting up XCode"
sudo xcodebuild -license
echo "Installing command line utilities"
# Update homebrew recipes
brew update
# Install Bash 4
brew install bash
brew install node
brew install git
brew cleanup
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
# Install apps to /Applications
# Default is: /Users/$user/Applications
echo "installing apps..."
brew cask install --appdir="/Applications" google-chrome
brew cask install --appdir="/Applications" atom
brew cask install --appdir="/Applications" slack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment