Fix pyenv-virtualenv-init script for fish where command was in string and not being evaluated

This commit is contained in:
Jeremy
2015-09-24 14:06:20 +02:00
parent 45c73f9073
commit a242067435

View File

@@ -78,7 +78,7 @@ fish )
function _pyenv_virtualenv_hook --on-event fish_prompt;
set -l PYENV_PREFIX (pyenv prefix 2>/dev/null; or true)
if [ -n "\$PYENV_ACTIVATE" ]
if [ "(pyenv version-name 2>/dev/null; or true)" = "system" ]
if [ (pyenv version-name 2>/dev/null; or true) = "system" ]
pyenv deactivate --no-error --verbose
set -e PYENV_DEACTIVATE
return 0