Skip to content

Instantly share code, notes, and snippets.

@heuristicfencepost
Created April 24, 2012 05:36
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 heuristicfencepost/2476814 to your computer and use it in GitHub Desktop.
Save heuristicfencepost/2476814 to your computer and use it in GitHub Desktop.
Shell script for starting redcar using rvm
# Load RVM into a shell session *as a function*
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
# First try to load from a user install
source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
# Then try to load from a root install
source "/usr/local/rvm/scripts/rvm"
else
printf "ERROR: An RVM installation was not found.\n"
fi
rvm use jruby-1.6.7@redcar
redcar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment