]> git.madduck.net Git - etc/zsh.git/blobdiff - .zsh/zshrc/99_hook_functions

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

fix prompt for root
[etc/zsh.git] / .zsh / zshrc / 99_hook_functions
index afd992bc36e07a75be6465bf3e940f7b351be396..a934d04f2231846704d83fcdf84522de284d7d5e 100644 (file)
 
 autoload -U is-at-least
 if ! is-at-least 4.3.6; then
 
 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
 fi
 
 # vim:ft=zsh