|
|
@ -104,7 +104,7 @@ esac |
|
|
|
case "$shell" in |
|
|
|
fish ) |
|
|
|
cat <<EOS |
|
|
|
function _pyenv_virtualenv_hook --on-event fish_prompt; |
|
|
|
function _pyenv_virtualenv_hook --on-variable PWD --on-variable PYENV_VERSION; |
|
|
|
set -l ret \$status |
|
|
|
if [ -n "\$VIRTUAL_ENV" ] |
|
|
|
pyenv activate --quiet; or pyenv deactivate --quiet; or true |
|
|
@ -113,6 +113,7 @@ function _pyenv_virtualenv_hook --on-event fish_prompt; |
|
|
|
end |
|
|
|
return \$ret |
|
|
|
end |
|
|
|
_pyenv_virtualenv_hook |
|
|
|
EOS |
|
|
|
;; |
|
|
|
ksh ) |
|
|
|