$COMP_KEY
–
Completion Key
$COMP_KEY
is the key used to invoke the current completion function.
This variable is only available in functions and external commands invoked by the programmable completion.
Links
BashSupport Pro is a Bash IDE with support for $COMP_KEY – try it now!