Created
July 23, 2011 07:48
-
-
Save seeflanigan/1101156 to your computer and use it in GitHub Desktop.
Functions 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
| # Functions for RVM | |
| rvmrubyversion () {rvm info|grep -C1 "interpreter"|grep "version:"|awk {'print $2'}} | |
| rvmrc () {current_path=$(pwd | awk '{split($0,array,"/");print array[length(array)]}') | |
| echo "rvm use default@$current_path --create" >> .rvmrc; source .rvmrc} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment