From 0a1ab9455ebcec82b6375013c21ffb653905f407 Mon Sep 17 00:00:00 2001 From: Nicole Tietz-Sokolskaya Date: Mon, 30 Sep 2019 19:41:12 -0400 Subject: [PATCH] Prevent pyenv from hijacking virtualenvs --- bash/.profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/.profile b/bash/.profile index 0848c72..7d6438a 100644 --- a/bash/.profile +++ b/bash/.profile @@ -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 -)"