mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-01 01:31:13 +00:00
[#297] Check for RVM and rbenv before returning
This commit is contained in:
parent
6b0b6c2f9a
commit
8ff60ad956
@ -5,11 +5,6 @@
|
||||
# Authors: Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# Return if requirements are not found.
|
||||
if (( ! $+commands[ruby] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Load RVM into the shell session.
|
||||
if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
|
||||
# Unset AUTO_NAME_DIRS since auto adding variable-stored paths to ~ list
|
||||
@ -36,6 +31,11 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# Return if requirements are not found.
|
||||
if (( ! $+commands[ruby] && ! ( $+commands[rvm] || $+commands[rbenv] ) )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
#
|
||||
# Aliases
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user