mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-21 13:41:25 +08:00
pyenv: Detect $PYENV_ROOT and act accordingly.
This also fixes issues for Homebrew users if the followed the caveat to set PYENV_ROOT to use the homebrew created directories.
This commit is contained in:
parent
ac502b3f0d
commit
1564756748
@ -1,7 +1,15 @@
|
||||
if test -d $HOME/.pyenv/bin
|
||||
set PATH $HOME/.pyenv/bin $PATH
|
||||
end
|
||||
|
||||
if test -d $HOME/.pyenv/shims
|
||||
set PATH $HOME/.pyenv/shims $PATH
|
||||
if test -n "$PYENV_ROOT"
|
||||
if test -d $PYENV_ROOT/bin
|
||||
set PATH $PYENV_ROOT/bin $PATH
|
||||
end
|
||||
if test -d $PYENV_ROOT/shims
|
||||
set $PATH $PYENV_ROOT/shims $PATH
|
||||
end
|
||||
else
|
||||
if test -d $HOME/.pyenv/bin
|
||||
set PATH $HOME/.pyenv/bin $PATH
|
||||
end
|
||||
if test -d $HOME/.pyenv/shims
|
||||
set PATH $HOME/.pyenv/shims $PATH
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user