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

View file

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