简体   繁体   English

Bash自动完成Ubuntu列出所有而不是循环

[英]Bash Autocomplete Ubuntu list all rather than cycle

On a fresh Ubuntu 12.04 install, my terminal tab-complete settings are configured such that the options are cycled through upon the second tab rather than what I am used to (listing all options and only completing what can be determined) 在新的Ubuntu 12.04安装中,我的终端选项卡完整设置被配置为使选项在第二个选项卡上循环而不是我习惯(列出所有选项并且仅完成可以确定的内容)

For example, in a directory containing listPixels.html and listPublishers.html, I want the a tab complete from 例如,在包含listPixels.html和listPublishers.html的目录中,我希望完成一个选项卡

l 

to simply complete 简单完成

listP 

and then a second tab should list all possible matches rather than cycling through listPixels.html and listPublishers.html on each subsequent tab. 然后第二个标签应列出所有可能的匹配,而不是在每个后​​续标签上循环通过listPixels.html和listPublishers.html。

You have menu-complete turned on. 您已menu-complete功能。 Simply rebind Tab to complete . 只需重新绑定Tab即可complete

bind '"\C-i":complete'

I believe that's a setting in your .inputrc. 我相信这是你的.inputrc中的一个设置。

Use the line: 使用该行:

set show-all-if-ambiguous On

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM