diff --git a/zshrc b/zshrc index 19048d3..d6073b0 100644 --- a/zshrc +++ b/zshrc @@ -3867,9 +3867,11 @@ kdesrc-run () } # Install PYENV -- to quickly switch between different Python environments -export PYENV_ROOT="$HOME/.pyenv" -[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" -eval "$(pyenv init -)" +if command -v pyenv &> /dev/null ; then + export PYENV_ROOT="$HOME/.pyenv" + [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init -)" +fi # Use colors in man pages # This used to work effortlessly just a few months ago,