mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-15 17:56:29 -04:00
use fish_preexec for hook
This commit is contained in:
parent
85d8c5aabf
commit
5ba0f8bdb9
|
|
@ -104,7 +104,7 @@ esac
|
|||
case "$shell" in
|
||||
fish )
|
||||
cat <<EOS
|
||||
function _pyenv_virtualenv_hook --on-event fish_prompt;
|
||||
function _pyenv_virtualenv_hook --on-event fish_preexec;
|
||||
set -l ret \$status
|
||||
if [ -n "\$VIRTUAL_ENV" ]
|
||||
pyenv activate --quiet; or pyenv deactivate --quiet; or true
|
||||
|
|
|
|||
Loading…
Reference in a new issue