mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
fix
This commit is contained in:
parent
cdd19e9ba9
commit
91c1a7bf2a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue