diff --git a/available-plugins/export/etc/jenv.d/init/export_jenv_hook.zsh b/available-plugins/export/etc/jenv.d/init/export_jenv_hook.zsh index 456e5ba..8067640 100644 --- a/available-plugins/export/etc/jenv.d/init/export_jenv_hook.zsh +++ b/available-plugins/export/etc/jenv.d/init/export_jenv_hook.zsh @@ -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