Prevent pyenv from hijacking virtualenvs

This commit is contained in:
Nicole Tietz-Sokolskaya 2019-09-30 19:41:12 -04:00
parent 95f3caa851
commit 0a1ab9455e
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ fi
export PATH="$HOME/.local/bin:$HOME/.bin:$PATH"
export TERM=xterm-256color
if [ -d "$HOME/.pyenv" ]
if [ -d "$HOME/.pyenv" ] && [ -z ${PYENV_SHELL+x} ]
then
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"