From ba619b69073aedaaa3e35c2b717f2de0cd15580e Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sun, 26 May 2024 10:14:46 -0400 Subject: [PATCH] FIX pyenv bugs --- dot_config/zsh/dot_zshrc.tmpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dot_config/zsh/dot_zshrc.tmpl b/dot_config/zsh/dot_zshrc.tmpl index fe4ec3b..77b8d60 100644 --- a/dot_config/zsh/dot_zshrc.tmpl +++ b/dot_config/zsh/dot_zshrc.tmpl @@ -438,11 +438,14 @@ zsh-pyenv () { if command -v pyenv 1>/dev/null 2>&1; then echo "Activating pyenv" - eval "$(pyenv init - | sed '/PATH/d' -)" - eval "$(pyenv virtualenv-init - | sed '/PATH/d' -)" + eval "$(pyenv init -)" else echo "pyenv not installed" fi + #if command -v pyenv-virtualenv-init 1>/dev/null 2>&1; then + # echo "Activating pyenv-virtualenv" + # eval "$(pyenv virtualenv-init - | sed '/PATH/d' -)" + #fi } {{- end }}