diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index 723b5d3..7047b36 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -12,9 +12,11 @@ if command -v nodenv &>/dev/null; then fi # pyenv -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 # ZOxide, cd alternative eval "$(zoxide init --cmd cd zsh)"