$PREFIX
–
Prefix of the current
$PREFIX
contains the text of the current word up to the cursor.
If modified it defines a common prefix for all completion matches.
Links
BashSupport Pro is a Zsh IDE with support for $PREFIX – try it now!