This commit is contained in:
Ivan Pozdeev 2026-04-21 18:44:01 +03:00
parent cdd19e9ba9
commit 91c1a7bf2a
No known key found for this signature in database
GPG key ID: FB6A628DCF06DCD7

View file

@ -247,24 +247,23 @@ EOS
;;
esac
case "$shell" in
bash )
cat <<EOS
case "$shell" in
bash )
cat <<EOS
if ! [[ "\${PROMPT_COMMAND-}" =~ _pyenv_virtualenv_hook ]]; then
PROMPT_COMMAND="_pyenv_virtualenv_hook;\${PROMPT_COMMAND-}"
fi
EOS
;;
zsh )
cat <<EOS
;;
zsh )
cat <<EOS
typeset -g -a precmd_functions
if [[ -z \$precmd_functions[(r)_pyenv_virtualenv_hook] ]]; then
precmd_functions=(_pyenv_virtualenv_hook \$precmd_functions);
fi
EOS
;;
* )
# No prompt command support or it's installed elsewhere
;;
esac
fi
;;
* )
# No prompt command support or it's installed elsewhere
;;
esac