Make sure that RVM is loaded before defining extras
parent
20d5f97f3e
commit
b740d7f0f7
|
|
@ -3,11 +3,12 @@
|
||||||
# Load RVM, if you are using it
|
# Load RVM, if you are using it
|
||||||
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
|
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
|
||||||
|
|
||||||
# Load the auto-completion script if RVM was loaded.
|
# Check to make sure that RVM is actually loaded before adding
|
||||||
|
# the customizations to it.
|
||||||
if [ "$rvm_path" ]
|
if [ "$rvm_path" ]
|
||||||
then
|
then
|
||||||
|
# Load the auto-completion script if RVM was loaded.
|
||||||
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
|
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
|
||||||
fi
|
|
||||||
|
|
||||||
switch () {
|
switch () {
|
||||||
rvm $1
|
rvm $1
|
||||||
|
|
@ -24,3 +25,5 @@ rvm_default () {
|
||||||
function rvm_version () {
|
function rvm_version () {
|
||||||
ruby --version
|
ruby --version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue