Skip to content

Instantly share code, notes, and snippets.

@chrishomer
Forked from BinaryMuse/rvm.sh
Created October 24, 2010 21:25
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 chrishomer/644012 to your computer and use it in GitHub Desktop.
Save chrishomer/644012 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Install RVM
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
# Modify ~/.bash_profile as necessary and source it to bring in changes
echo "[[ -s \"\$HOME/.rvm/scripts/rvm\" ]] && source \"\$HOME/.rvm/scripts/rvm\"" >> ~/.bash_profile
source ~/.bash_profile
# Install and use Ruby 1.9.2
rvm install ruby-1.9.2-p0 && rvm use 1.9.2
# Create a gemset for and install Rails 3 RC
rvm gemset create tu3 && rvm use 1.9.2@tu3
gem install rails
# Make Ruby 1.9.2 and Rails 3 the default Ruby interpreter and gemset
rvm --default 1.9.2@tu3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment