diff --git a/.zsh/pyenv.zsh b/.zsh/pyenv.zsh index 6c44bd4..3242d69 100644 --- a/.zsh/pyenv.zsh +++ b/.zsh/pyenv.zsh @@ -1,6 +1,5 @@ -if iscmd pyenv; then - export PYENV_ROOT="$HOME/.pyenv" - command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" - eval "$(pyenv init -)" +if test -f "$HOME/.pyenv/bin/pyenv"; then + export PYENV_ROOT="$HOME/.pyenv" + command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init -)" fi -