Answers:
看来您正在寻找清单完成。在手册页中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
因此,这取决于完成命令的完成功能。
如果您set -o vi在bash 中使用,则Ctrl-X*无法使用。
在set -o vi模式下,您需要使用Esc*。
<C-X>*就可以使用,但是它<C-X>是多余的,什么也不做。(<C-X>不会像vi中那样递减。)如果处于插入模式,则必须先使用<Esc>。
man readline。我使用Bash已有10年了,但我仍在学习新的东西。
Ctrl-X*