Skip to content

Instantly share code, notes, and snippets.

@anithri
Created August 7, 2011 09:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anithri/1130255 to your computer and use it in GitHub Desktop.
Save anithri/1130255 to your computer and use it in GitHub Desktop.
zsh function to create .rvmrc files
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