Skip to content

Instantly share code, notes, and snippets.

@amercier
Last active August 29, 2015 14:08
Show Gist options
  • Save amercier/72c1b3b144e17ffd4d2c to your computer and use it in GitHub Desktop.
Save amercier/72c1b3b144e17ffd4d2c to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Brew
which brew >/dev/null \
&& echo "Brew is already installed" \
|| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap homebrew/dupes
brew tap homebrew/homebrew-php
brew tap homebrew/versions
brew tap caskroom/versions
brew update
brew install caskroom/cask/brew-cask
brew install git
brew install nvm
brew install php56
brew install php56-xdebug
brew cask update
brew cask install ccmenu
brew cask install firefox
brew cask install firefox-aurora
brew cask install google-chrome
brew cask install google-chrome-canary
brew cask install java
brew cask install moom
brew cask install sublime-text3
brew cask install vlc
# Ruby
which rvm >/dev/null \
&& echo "RVM is already installed" \
|| curl -sSL https://get.rvm.io | bash -s stable
source ~/.profile
ruby_version="$(curl -s -L https://www.ruby-lang.org/en/downloads/ | grep stable | egrep -o '[0-9]+\.[0-9]+\.[0-9]+' | head -n 1)"
[ "$(rvm current)" == "ruby-$ruby_version" ] && echo "Ruby $ruby_version is already installed" || (rvm install $ruby_version && rvm --default use "$ruby_version")
for gem in rails rails-api compass bundler travis; do
[ -e $GEM_HOME/bin/$gem ] && echo $gem is already installed || gem install $gem
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment