X-Git-Url: http://www.git.stargrave.org/?p=zsh-autoenv.git;a=blobdiff_plain;f=autoenv.zsh;fp=autoenv.zsh;h=2164bd37135f67a92030d83d2199d98026162e55;hp=5395e1f9405fc1f43e794d41c45cd27723bebd81;hb=bba8f04258e09013d84c8ad15f6067afc2e55ae3;hpb=468fa71d1529451db98d91c85b1a738679697688 diff --git a/autoenv.zsh b/autoenv.zsh index 5395e1f..2164bd3 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -296,7 +296,7 @@ _autoenv_source() { fi # Source the env file. - _autoenv_debug "== SOURCE: ${bold_color:-}$autoenv_env_file${reset_color:-}\n PWD: $PWD" + _autoenv_debug "== SOURCE: $autoenv_event: ${bold_color:-}$autoenv_env_file${reset_color:-} (in $PWD)" (( ++_autoenv_debug_indent )) local restore_xtrace @@ -401,6 +401,7 @@ _autoenv_chpwd_handler() { prev_dir=${prev_file:h} if ! [[ ${PWD}/ == ${prev_dir}/* ]]; then local env_file_leave=$prev_dir/$AUTOENV_FILE_LEAVE + _autoenv_debug "Handling leave event: $env_file_leave" if _autoenv_check_authorized_env_file $env_file_leave; then varstash_dir=$prev_dir _autoenv_source $env_file_leave leave $prev_dir fi @@ -438,8 +439,6 @@ _autoenv_chpwd_handler() { # Source the enter env file. _autoenv_debug "Sourcing from chpwd handler: $env_file" _autoenv_source $env_file enter - - (( ++_autoenv_debug_indent )) } # }}}