$compprefuncs  –  Functions called immediately before completion is attempted

$compprefuncs contains the names of functions, which are called immediately before completion is attempted. Such a function is only called once unless it reinserts itself into the array when it’s called.

BashSupport Pro is a Zsh IDE with support for $compprefuncs – try it now!