From 79bfc9d3623632073c1ce320b3e70613a2584a68 Mon Sep 17 00:00:00 2001 From: Beau Barker Date: Wed, 17 Sep 2014 19:50:41 +1000 Subject: [PATCH] When changing from a virtualenv to "system", unset PYENV_DEACTIVATE. Previously the var remained set, which made it impossible to reactivate the previous virtualenv --- bin/pyenv-virtualenv-init | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/pyenv-virtualenv-init b/bin/pyenv-virtualenv-init index 62a221e..1ec7f20 100755 --- a/bin/pyenv-virtualenv-init +++ b/bin/pyenv-virtualenv-init @@ -112,6 +112,7 @@ if [[ "$shell" != "fish" ]]; then if [ -n "\$PYENV_ACTIVATE" ]; then if [ "\$(pyenv version-name)" = "system" ]; then pyenv deactivate --no-error --verbose + unset PYENV_DEACTIVATE return 0 fi if [ "\$PYENV_ACTIVATE" != "\$(pyenv prefix)" ]; then