Merge pull request #101 from blueyed/prepend-to-precmd

init: zsh: prepend hook to precmd_functions
This commit is contained in:
Yamashita, Yuu
2015-11-03 05:25:20 +09:00
2 changed files with 2 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ EOS
cat <<EOS cat <<EOS
typeset -g -a precmd_functions typeset -g -a precmd_functions
if [[ -z \$precmd_functions[(r)_pyenv_virtualenv_hook] ]]; then if [[ -z \$precmd_functions[(r)_pyenv_virtualenv_hook] ]]; then
precmd_functions+=_pyenv_virtualenv_hook; precmd_functions=(_pyenv_virtualenv_hook \$precmd_functions);
fi fi
EOS EOS
;; ;;

View File

@@ -141,7 +141,7 @@ _pyenv_virtualenv_hook() {
}; };
typeset -g -a precmd_functions typeset -g -a precmd_functions
if [[ -z \$precmd_functions[(r)_pyenv_virtualenv_hook] ]]; then if [[ -z \$precmd_functions[(r)_pyenv_virtualenv_hook] ]]; then
precmd_functions+=_pyenv_virtualenv_hook; precmd_functions=(_pyenv_virtualenv_hook \$precmd_functions);
fi fi
EOS EOS
} }