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