$preexec_functions
–
Functions executed before commands are executed
$preexec_functions
defines functions in addition to preexec
which are executed before a command is about to be executed.
Links
BashSupport Pro is a Zsh IDE with support for $preexec_functions – try it now!