Skip to content

Instantly share code, notes, and snippets.

@howiehu
Created December 19, 2013 03:21
Show Gist options
  • Save howiehu/8033909 to your computer and use it in GitHub Desktop.
Save howiehu/8033909 to your computer and use it in GitHub Desktop.
Let pow to use .ruby-version & .ruby-gemset files. Please put this file to rails projects's folder.
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