Skip to content

Instantly share code, notes, and snippets.

@tonytonyjan
Last active August 29, 2015 14:07
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 tonytonyjan/ede3a896700bf48f769a to your computer and use it in GitHub Desktop.
Save tonytonyjan/ede3a896700bf48f769a to your computer and use it in GitHub Desktop.
OSX Rails 環境配置懶人包
#!/usr/bin/env bash
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install caskroom/cask/brew-cask rbenv ruby-build
brew tap caskroom/versions
brew cask instal iterm2 sublime-text3
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
rbenv install 2.1.3
rbenv global 2.1.3
gem update --system
gem install rails
rbenv rehash rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment