Skip to content

Instantly share code, notes, and snippets.

@blake41
Created July 24, 2013 20:41
Show Gist options
  • Save blake41/6074349 to your computer and use it in GitHub Desktop.
Save blake41/6074349 to your computer and use it in GitHub Desktop.
#!/bin/bash --login
# usage: _rvmruby <ruby version> [ruby arguments]
[ -s "$HOME/.rvm/scripts/rvm" ] && . "$HOME/.rvm/scripts/rvm"
ruby_version=$1; shift
rvm $ruby_version
exec ruby "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment