Created
May 9, 2012 22:03
-
-
Save jassa/2649234 to your computer and use it in GitHub Desktop.
Short rbenv setup
This file contains hidden or 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
## 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