Load RVM and auto-completion is available

No reason not to turn on RVM if it's present and the autocompletion is a
huge benefit.
pull/52/head
Travis Swicegood 2011-05-30 09:46:22 -05:00
parent ccf4951d17
commit 20d5f97f3e
1 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,14 @@
#!/bin/bash
# Load RVM, if you are using it
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
# Load the auto-completion script if RVM was loaded.
if [ "$rvm_path" ]
then
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
fi
switch () {
rvm $1
local v=$(rvm_version)