Skip to content

Instantly share code, notes, and snippets.

@huyhong
Last active December 26, 2015 16:29
Show Gist options
  • Save huyhong/7180024 to your computer and use it in GitHub Desktop.
Save huyhong/7180024 to your computer and use it in GitHub Desktop.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
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