Skip to content

Instantly share code, notes, and snippets.

@wojtekmach
Created July 16, 2014 12:52
Show Gist options
  • Save wojtekmach/c41fe48afe3a0a25900b to your computer and use it in GitHub Desktop.
Save wojtekmach/c41fe48afe3a0a25900b to your computer and use it in GitHub Desktop.
# based on https://github.com/basecamp/pow/issues/428
if [ -f "$rvm_path/scripts/rvm" ]; then
source "$rvm_path/scripts/rvm"
fi
if [ -f ".rvmrc" ]; then
source ".rvmrc"
fi
if [ -f ".ruby-version" ] && [ -f ".ruby-gemset" ]; then
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