Skip to content

Instantly share code, notes, and snippets.

@jassa
Created May 9, 2012 22:03
Show Gist options
  • Save jassa/2649234 to your computer and use it in GitHub Desktop.
Save jassa/2649234 to your computer and use it in GitHub Desktop.
Short rbenv setup
## Prepare ###################################################################
# Remove RVM
rvm implode
# Remove the RVM stuff from your .profile - It probably looks like...
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
# Reload your profile
## Usage #####################################################################
rbenv
# Choose a ruby flavor version to install
rbenv install 1.9.3-p0
rbenv install 1.9.2-p290
# Rehash rbenv shims (run this after installing binaries)
rbenv rehash
# Set the global Ruby version and install bundler globally
rbenv global 1.9.3-p290
rbenv rehash
# Set a project specific ruby version
cd myproject
rbenv local 1.9.2-p290
# Install gems in Gemfile
cd ~/projects/newhotness
bundle install --binstubs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment