FIX pyenv bugs

This commit is contained in:
Nathan Dwarshuis 2024-05-26 10:14:46 -04:00
parent 539a16ce9f
commit ba619b6907
1 changed files with 5 additions and 2 deletions

View File

@ -438,11 +438,14 @@ zsh-pyenv () {
if command -v pyenv 1>/dev/null 2>&1; then if command -v pyenv 1>/dev/null 2>&1; then
echo "Activating pyenv" echo "Activating pyenv"
eval "$(pyenv init - | sed '/PATH/d' -)" eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init - | sed '/PATH/d' -)"
else else
echo "pyenv not installed" echo "pyenv not installed"
fi 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 }} {{- end }}