如何在bash中禁用“显示所有可能性”和--更多--东西?

wim*_*wim 11 bash autocomplete

在我的 shell 中,l+tab完成如下:

wim@wim-zenbook:~$ l
Display all 135 possibilities? (y or n)
Run Code Online (Sandbox Code Playgroud)

有一个提示回答yn哪个很烦人,它会翻页,--More--这也很烦人。我们怎样才能让它在没有唠叨的情况下只展示可能性?

在 Ubuntu 上使用 gnome-terminal。

wim*_*wim 16

我阅读了 bash 的手册页,并能够通过在文件中添加以下几行来获得我想要的行为 ~/.inputrc

set completion-query-items 0
set page-completions off
Run Code Online (Sandbox Code Playgroud)