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.
This commit is contained in:
@@ -1,4 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/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 () {
|
switch () {
|
||||||
rvm $1
|
rvm $1
|
||||||
local v=$(rvm_version)
|
local v=$(rvm_version)
|
||||||
|
|||||||
Reference in New Issue
Block a user