Skip to content

Instantly share code, notes, and snippets.

@kwstannard
Created March 12, 2014 16:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwstannard/9511264 to your computer and use it in GitHub Desktop.
Save kwstannard/9511264 to your computer and use it in GitHub Desktop.
if [ -f "$rvm_path/scripts/rvm" ]; then
source "$rvm_path/scripts/rvm"
if [ -f ".rvmrc" ]; then
source ".rvmrc"
else
if [ -f ".ruby-version" ]; then
if [ -f ".ruby-gemset" ]; then
rvm use `cat .ruby-version`@`cat .ruby-gemset`
else
rvm use `cat .ruby-version`
fi
fi
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment