mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 12:48:01 +00:00
python: Remove pyenv init woraround for pyenv >= 2.3.0
The startup logic and instructions have been updated for simplicity in pyenv 2.3.0. The workaround for pyenv init is no longer necessary. Signed-off-by: Indrajit Raychaudhuri <irc@indrajit.com>
This commit is contained in:
parent
5ac930d96b
commit
457ade4f01
@ -25,12 +25,7 @@ if [[ -s "${local_pyenv::=${PYENV_ROOT:-$HOME/.pyenv}/bin/pyenv}" ]] \
|
|||||||
# Ensure manually installed pyenv is added to path when present.
|
# Ensure manually installed pyenv is added to path when present.
|
||||||
[[ -s $local_pyenv ]] && path=($local_pyenv:h $path)
|
[[ -s $local_pyenv ]] && path=($local_pyenv:h $path)
|
||||||
|
|
||||||
# pyenv 2+ requires shims to be added to path before being initialized.
|
# Load pyenv into the shell session.
|
||||||
autoload -Uz is-at-least
|
|
||||||
if is-at-least 2 ${"$(pyenv --version 2>&1)"[(w)2]}; then
|
|
||||||
eval "$(pyenv init --path zsh)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
eval "$(pyenv init - zsh)"
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user