Created
October 11, 2012 16:05
-
-
Save moznion/3873432 to your computer and use it in GitHub Desktop.
ruby_switcher
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
my $rvm_path = "~/.rvm/rubies"; | |
`rvm list` =~ /=.*?(ruby-.*?)\s\[/; | |
system("$rvm_path/$1/bin/ruby @ARGV"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment