mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
Respect RBENV_ROOT and PYENV_ROOT if set
This commit is contained in:
parent
37c2d0ddd7
commit
345600d436
2 changed files with 8 additions and 0 deletions
|
|
@ -9,6 +9,10 @@ _pyenv-from-homebrew-installed() {
|
|||
FOUND_PYENV=0
|
||||
pyenvdirs=("$HOME/.pyenv" "/usr/local/pyenv" "/opt/pyenv")
|
||||
|
||||
if [[ -n "$PYENV_ROOT" ]]; then
|
||||
pyenvdirs=($PYENV_ROOT "${pyenvdirs[@]}")
|
||||
fi
|
||||
|
||||
for pyenvdir in "${pyenvdirs[@]}" ; do
|
||||
if [ -d $pyenvdir/bin -a $FOUND_PYENV -eq 0 ] ; then
|
||||
FOUND_PYENV=1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue