Created
August 7, 2011 09:54
-
-
Save anithri/1130255 to your computer and use it in GitHub Desktop.
zsh function to create .rvmrc files
This file contains 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
function mk_rvmrc() { | |
my_ruby=${argv[1]:=$ruby19} #I set ruby19=ruby-1.9.2@p290 elsewhere. | |
my_gemset=${argv[2]:=`basename $PWD`} #uses the name of the current directory if no 2nd arg is given | |
rvm --create --rvmrc ${my_ruby}@${my_gemset} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment