load pyenv when it exists

Cette révision appartient à :
Inhji 2020-02-10 08:20:36 +01:00
Parent cef5c729a4
révision c5875e623c
1 fichiers modifiés avec 5 ajouts et 3 suppressions

Voir le fichier

@ -39,8 +39,10 @@ prompt pure
eval $( dircolors -b $DOTFILES/config/zsh/dircolors.zsh )
# Pyenv
export PATH="/home/inhji/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
if [[ -d $HOME/.pyenv ]]; then
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi