Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I had this on my Ubuntu setup and since I switched to Fedora I want to set it and I forgot how... The idea is simple :

I don't want the terminal to show me suggestions when I double tab, instead I want it to cycle through every possible suggestion with each press on tab... this can be done in Vim also.

So when I type gedit a and press tab it will show me every file with a first letter a.

share|improve this question

1 Answer 1

up vote 19 down vote accepted

This is actually a readline feature called menu-complete . You can bind it to tab (replacing the default complete) by running:

bind TAB:menu-complete

You probably want to add that to your ~/.bashrc. Alternatively, you could configure it for all readline completions (not just bash) in ~/.inputrc.

You may also find bind -p (show current bindings, note that shows tab as "\C-i") and bind -l (list all functions that can be bound) useful, as well as the bash manual's line editing section and readline's documentation.

share|improve this answer
Can i combine 2 methods of autocompleting (the list and inline) and thanks for the answer :) –  vanjadjurdjevic Nov 12 '11 at 0:44
@vanjadjurdjevic: Sure, just bind them to different keys. –  derobert Nov 12 '11 at 9:51
thank you very much. –  vanjadjurdjevic Nov 12 '11 at 13:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.