Skip to content

Instantly share code, notes, and snippets.

@hoetmaaiers
Forked from flarik/dot.powrc.sh
Created January 22, 2014 14:31
Show Gist options
  • Save hoetmaaiers/8559626 to your computer and use it in GitHub Desktop.
Save hoetmaaiers/8559626 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