Skip to content

Instantly share code, notes, and snippets.

@barriault
Created October 29, 2013 21:57
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 barriault/7223377 to your computer and use it in GitHub Desktop.
Save barriault/7223377 to your computer and use it in GitHub Desktop.
I scraped this code from http://ryandeussing.com/blog/2013/05/27/make-pow-and-rvm-play-nice-dot-rvmrc-powenv/. I've placed it here so I can find it again . . .
if [ -f "$rvm_path/scripts/rvm" ]; then
source "$rvm_path/scripts/rvm"
if [ -f ".rvmrc" ]; then
source ".rvmrc"
fi
if [ -f ".ruby-version" ]; then
rvm use `cat .ruby-version`
fi
if [ -f ".ruby-gemset" ]; then
rvm gemset use --create `cat .ruby-gemset`
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment