Skip to content

Instantly share code, notes, and snippets.

@NoumanSaleem
Last active August 29, 2015 13:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NoumanSaleem/8786327 to your computer and use it in GitHub Desktop.
Save NoumanSaleem/8786327 to your computer and use it in GitHub Desktop.
Mac setup bash script.Usage: Save file and open a terminal window in the same directory. Run: source install.sh (Change install.sh to w/e you saved the file as.)
# Install homebrew
echo 'Install Homebrew'
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
# Install node.js
echo 'Install node.js'
brew install node
# Npm without sudo
sudo chown -R `whoami` ~/.npm
# Install Grunt-cli
echo 'Install Grunt-cli'
npm install -g grunt-cli
# Install Bower
echo 'Install Bower'
npm install -g bower
# Install Node-inspector
echo 'Install Node-inspector'
npm install -g node-inspector
# Install native apps
brew tap phinze/homebrew-cask
brew install brew-cask
function installcask() {
brew cask install "${@}" 2> /dev/null
}
echo 'Install Sourcetree.app'
installcask sourcetree
echo 'Installation complete!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment