Browse Source

Use the precmd hook instead of the chpwd hook

pull/271/head
Enrico M. Crisostomo 6 years ago
parent
commit
f417d46f17
  1. 6
      available-plugins/export/etc/jenv.d/init/export_jenv_hook.zsh

6
available-plugins/export/etc/jenv.d/init/export_jenv_hook.zsh

@ -14,9 +14,9 @@ @@ -14,9 +14,9 @@
#echo "configure export plugin for ZSH"
function install_hook {
emulate -LR zsh
typeset -ag chpwd_functions
if [[ -z $chpwd_functions[(r)_jenv_export_hook] ]]; then
chpwd_functions+=_jenv_export_hook;
typeset -ag precmd_functions
if [[ -z $precmd_functions[(r)_jenv_export_hook] ]]; then
precmd_functions+=_jenv_export_hook;
fi
}
install_hook

Loading…
Cancel
Save