Selaa lähdekoodia

use fish_preexec for hook

pull/457/head
Merilynn Bandy 1 vuosi sitten
vanhempi
commit
5ba0f8bdb9
No known key found for this signature in database GPG Key ID: 3D463BCC4E2C6CE1
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      bin/pyenv-virtualenv-init

+ 1
- 1
bin/pyenv-virtualenv-init Näytä tiedosto

@ -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

Ladataan…
Peruuta
Tallenna