简体   繁体   中英

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)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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