Skip to content

Instantly share code, notes, and snippets.

@dalpo
Created September 12, 2013 19:39
Show Gist options
  • Save dalpo/6542786 to your computer and use it in GitHub Desktop.
Save dalpo/6542786 to your computer and use it in GitHub Desktop.
powrc with .ruby-version
if [ -f "$rvm_path/scripts/rvm" ] && [ -f ".ruby-version" ]; then
source "$rvm_path/scripts/rvm"
if [ -f ".ruby-gemset" ]; then
rvm use `cat .ruby-version`@`cat .ruby-gemset`
else
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