$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 是一个 支持 $COMP_KEY 的 Bash 集成开发工具 – 马上试用!