From 21e999cc7cc10198b4b0eee4c38a6e7c19cb86c1 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Fri, 13 Jun 2014 19:30:37 +0900 Subject: [PATCH] Fix deactivation issue with `system` version $ pyenv global system $ pyenv shell venv (venv) $ pyenv shell --unset (venv) $ pyenv version system (set by /home/yamashita/.pyenv/version) (venv) $ pyenv which python /home/yamashita/.pyenv/versions/venv/bin/python # <-- should be `/usr/bin/python` (system) --- bin/pyenv-virtualenv-init | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/bin/pyenv-virtualenv-init b/bin/pyenv-virtualenv-init index 93a566a..20f8744 100755 --- a/bin/pyenv-virtualenv-init +++ b/bin/pyenv-virtualenv-init @@ -66,8 +66,10 @@ case "$shell" in bash ) cat </dev/null || true fi }; @@ -79,8 +81,10 @@ EOS fish ) cat </dev/null); or true end end @@ -89,8 +93,10 @@ EOS zsh ) cat </dev/null || true fi }