Skip to content

Instantly share code, notes, and snippets.

@williamdodson
Forked from alanstevens/install-rvm.sh
Created December 20, 2011 15:22
Show Gist options
  • Save williamdodson/1501925 to your computer and use it in GitHub Desktop.
Save williamdodson/1501925 to your computer and use it in GitHub Desktop.
Shell script to install rvm and rails
#!/bin/bash
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
source ~/.bash_profile
rvm install 1.9.2
rvm use 1.9.2 --default
rvm use 1.9.2@global
gem install rails --no-rdoc --no-ri
gem install bundler --no-rdoc --no-ri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment