Skip to content

Instantly share code, notes, and snippets.

@mtheoryx
Created March 21, 2012 19:14
Show Gist options
  • Save mtheoryx/2151530 to your computer and use it in GitHub Desktop.
Save mtheoryx/2151530 to your computer and use it in GitHub Desktop.
bash alias function for rvm
## Generic template for new gemset and directory with .rvmrc
function rvmnew() {
# Paramter: gemset name to create
mkdir "$1" && cd "$1"
ruby=`rvm current | awk -F '[@-]' '{print $2"-"$3}'`
rvm --create use --rvmrc "${ruby}"@"$1" && rvm reload
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment