Created
March 21, 2012 19:14
-
-
Save mtheoryx/2151530 to your computer and use it in GitHub Desktop.
bash alias function for rvm
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
| ## 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