X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/ad7c4bae9781483a15c2a11c9db247edf7c3c365..d95ea66661f1856b71974571a2a2167bd8557440:/.zsh/zshrc/00_varsetup?ds=inline diff --git a/.zsh/zshrc/00_varsetup b/.zsh/zshrc/00_varsetup index a49f67d..fd36072 100644 --- a/.zsh/zshrc/00_varsetup +++ b/.zsh/zshrc/00_varsetup @@ -16,7 +16,16 @@ typeset -ga preexec_functions typeset -ga precmd_functions typeset -ga chpwd_functions +__chpwd_run_first() +{ + [[ -n $__CHPWD_RUN_FIRST ]] || return + eval "$__CHPWD_RUN_FIRST" +} +chpwd_functions+=__chpwd_run_first + # warn on accidental creation of global variables -setopt warn_create_global +# unset for now until we work out the corner cases, like warning about $reply +# and $HISTFILE or $REPORTTIME. +#setopt warn_create_global # vim:ft=zsh