$precmd_functions
–
Functions executed before each prompt
$precmd_functions
defines functions in addition to precmd
which are executed before each prompt.
Links
BashSupport Pro is a Zsh IDE with support for $precmd_functions – try it now!