diff --git a/sub/zsh/other b/sub/zsh/other index 2b35d0a..43ba5a1 100644 --- a/sub/zsh/other +++ b/sub/zsh/other @@ -25,6 +25,8 @@ if [ -f /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then fi -export PYENV_ROOT="$HOME/.pyenv" -command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" -eval "$(pyenv init -)" +if [ -n "$(command -v pyenv >/dev/null)" ]; then + export PYENV_ROOT="$HOME/.pyenv" + export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init -)" +fi