如何在不丢失命令的情况下中止为选项卡完成构建列表?

Vi.*_*Vi. 5 bash tab-completion

some_very_long_command_line --arg1 --arg2=555 --arg4 ... ... ... && <now Tab pressed>
(Now it works. I want to cancel before the following message)
Display all 6936 possibilities? (y or n)
Run Code Online (Sandbox Code Playgroud)

如何长时间搜索 Tab 完成,但不丢失命令?

如果只是按 Ctrl+C 它将中止,但也不会将命令保存到历史记录。

Maj*_*nko 1

只需按退格键即可。y/n 请求消失并将光标返回到您正在键入的命令行。