diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index aaf506b..bf75f04 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -30,7 +30,7 @@ fi bindkey -e #---------------------------------------------------------------------------------# ### Load pyenv -if ls "$HOME/.pyenv" &> /dev/null; then +if command -v pyenv &> /dev/null; then eval "$(pyenv init -)" fi #---------------------------------------------------------------------------------#