Skip to content

Instantly share code, notes, and snippets.

@j-manu
Forked from flarik/dot.powrc.sh
Created July 1, 2014 12:40
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 j-manu/1d28458b85d3b2efb4d4 to your computer and use it in GitHub Desktop.
Save j-manu/1d28458b85d3b2efb4d4 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"
elif [ -f ".ruby-version" ] && [ -f ".ruby-gemset" ]; then
rvm use `cat .ruby-version`@`cat .ruby-gemset`
elif [ -f ".ruby-version" ]; then
rvm use `cat .ruby-version`
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment