Có vẻ như bạn đang tìm kiếm danh sách hoàn thành. Trong trang người đàn ông cho bash:
COMP_TYPE
Set to an integer value corresponding to the type of completion
attempted that caused a completion function to be called: TAB,
for normal completion, ?, for listing completions after succes‐
sive tabs, !, for listing alternatives on partial word comple‐
tion, @, to list completions if the word is not unmodified, or
%, for menu completion. This variable is available only in
shell functions and external commands invoked by the program‐
mable completion facilities
Vì vậy, nó phụ thuộc vào chức năng hoàn thành cho ai đó và làm thế nào điều này được hoàn thành.
Ctrl-X*