Skip to content

Instantly share code, notes, and snippets.

@seeflanigan
Created July 23, 2011 07:48
Show Gist options
  • Select an option

  • Save seeflanigan/1101156 to your computer and use it in GitHub Desktop.

Select an option

Save seeflanigan/1101156 to your computer and use it in GitHub Desktop.
Functions for RVM
# 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