Created
September 16, 2012 06:11
-
-
Save guange2015/3731244 to your computer and use it in GitHub Desktop.
_rvmruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # usage: _rvmruby <ruby version> [ruby arguments] | |
| if [[ -s ~/.rvm/scripts/rvm ]]; then | |
| . ~/.rvm/scripts/rvm | |
| fi | |
| 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