Only call pyenv init
once
This commit is contained in:
parent
5ac930d96b
commit
352f1fc4ea
1 changed files with 2 additions and 2 deletions
|
@ -29,10 +29,10 @@ if [[ -s "${local_pyenv::=${PYENV_ROOT:-$HOME/.pyenv}/bin/pyenv}" ]] \
|
||||||
autoload -Uz is-at-least
|
autoload -Uz is-at-least
|
||||||
if is-at-least 2 ${"$(pyenv --version 2>&1)"[(w)2]}; then
|
if is-at-least 2 ${"$(pyenv --version 2>&1)"[(w)2]}; then
|
||||||
eval "$(pyenv init --path zsh)"
|
eval "$(pyenv init --path zsh)"
|
||||||
|
else
|
||||||
|
eval "$(pyenv init - zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval "$(pyenv init - zsh)"
|
|
||||||
|
|
||||||
# Prepend PEP 370 per user site packages directory, which defaults to
|
# Prepend PEP 370 per user site packages directory, which defaults to
|
||||||
# ~/Library/Python on macOS and ~/.local elsewhere, to PATH. The
|
# ~/Library/Python on macOS and ~/.local elsewhere, to PATH. The
|
||||||
# path can be overridden using PYTHONUSERBASE.
|
# path can be overridden using PYTHONUSERBASE.
|
||||||
|
|
Loading…
Add table
Reference in a new issue