Skip to content

Instantly share code, notes, and snippets.

@alanstevens
Last active September 28, 2015 21:58
Show Gist options
  • Save alanstevens/1501899 to your computer and use it in GitHub Desktop.
Save alanstevens/1501899 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 autolibs enable
rvm install 1.9.3
rvm use 1.9.3 --default
rvm use 1.9.3@global
echo "install: --no-rdoc --no-ri" >> ~/.gemrc
echo "update: --no-rdoc --no-ri" >> ~/.gemrc
gem install bundler
gem install rake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment