mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 17:28:01 +00:00
ruby: support environment variable RBENV_ROOT
This commit is contained in:
parent
75940e8ee9
commit
6ae2f39cc1
@ -15,8 +15,8 @@ if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
|
||||
source "$HOME/.rvm/scripts/rvm"
|
||||
|
||||
# Load manually installed rbenv into the shell session.
|
||||
elif [[ -s "$HOME/.rbenv/bin/rbenv" ]]; then
|
||||
path=("$HOME/.rbenv/bin" $path)
|
||||
elif [[ -s "${RBENV_ROOT:=$HOME/.rbenv}/bin/rbenv" ]]; then
|
||||
path=("${RBENV_ROOT}/bin" $path)
|
||||
eval "$(rbenv init - --no-rehash zsh)"
|
||||
|
||||
# Load package manager installed rbenv into the shell session.
|
||||
|
Loading…
Reference in New Issue
Block a user