Skip to content

Instantly share code, notes, and snippets.

@timblair
Last active December 19, 2015 07:29
Show Gist options
  • Save timblair/5919255 to your computer and use it in GitHub Desktop.
Save timblair/5919255 to your computer and use it in GitHub Desktop.
Quick setup of Bundler, rbenv and latest Ruby.
# 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