From: martin f. krafft Date: Tue, 6 May 2008 10:34:06 +0000 (+0100) Subject: pass arguments to hook functions X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/dbdc7eafae07bf7a5830402200e1d5fe9188a622?ds=sidebyside pass arguments to hook functions --- diff --git a/.zsh/zshrc/99_hook_functions b/.zsh/zshrc/99_hook_functions index afd992b..a934d04 100644 --- a/.zsh/zshrc/99_hook_functions +++ b/.zsh/zshrc/99_hook_functions @@ -10,10 +10,10 @@ autoload -U is-at-least if ! is-at-least 4.3.6; then - precmd() { for fn ($precmd_functions) $fn } - preexec() { for fn ($preexec_functions) $fn } - chpwd() { for fn ($chpwd_functions) $fn } - periodic() { for fn ($periodic_functions) $fn } + precmd() { for fn ($precmd_functions) $fn "$@" } + preexec() { for fn ($preexec_functions) $fn "$@" } + chpwd() { for fn ($chpwd_functions) $fn "$@" } + periodic() { for fn ($periodic_functions) $fn "$@" } fi # vim:ft=zsh