Browse Source

load pyenv when it exists

master
Inhji Y. 1 year ago
parent
commit
c5875e623c
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      config/zshrc

+ 5
- 3
config/zshrc View File

@@ -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



Loading…
Cancel
Save