Last active
December 19, 2015 07:29
-
-
Save timblair/5919255 to your computer and use it in GitHub Desktop.
Quick setup of Bundler, rbenv and latest Ruby.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run with: | |
# | |
# curl -fsSL https://gist.github.com/timblair/5919255/raw | bash | |
$( which brew >/dev/null ) || ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
brew update | |
$( which rbenv >/dev/null) || brew install rbenv --HEAD | |
$( which ruby-build > /dev/null ) || brew install ruby-build --HEAD | |
brew upgrade ruby-build | |
echo 'eval "$(rbenv init -)"' >> ~/.profile | |
. ~/.profile | |
echo -e "install: --no-rdoc --no-ri\nupdate: --no-rdoc --no-ri" >> ~/.gemrc | |
rbenv install 2.0.0-p247 | |
rbenv global 2.0.0-p247 | |
gem update --system | |
gem install rbenv-rehash | |
gem install --pre bundler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment