Bash Autocomplete Ubuntu list all rather than cycle
-
13-06-2021 - |
题
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)
For example, in a directory containing listPixels.html and listPublishers.html, I want the a tab complete from
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.
解决方案
You have menu-complete
turned on. Simply rebind Tab to complete
.
bind '"\C-i":complete'
其他提示
I believe that's a setting in your .inputrc.
Use the line:
set show-all-if-ambiguous On
不隶属于 StackOverflow