Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Basically i want to change ubuntu terminal functionally, so that i can cycle thru all the options when i tab(on the cmd line row) and not list the options as it is per default?

Im using bash, ubuntu 9.04. I see some possibilities in ".bashrc", but there must be someone out there who already solved this problem?

share|improve this question
you do know that if press Tab twice you got a list of all possible completion, don't you? – vava Sep 12 '09 at 9:23
@vava: You're describing bash's possible-completions command, which is usually the default behavior. The question is how to replace this behavior with the behavior provided by bash's menu-complete command. – las3rjock Sep 12 '09 at 9:49
@las3rjock, I know, that's why I left a comment, not an answer. It is just possible that OP doesn't know about that feature since it is way better than cycling mode. – vava Sep 12 '09 at 9:54
@vava: The OP describes the possible-completions behavior and states that he wants to replace it with the menu-complete behavior. – las3rjock Sep 12 '09 at 10:10
@vava i do know how the terminal works, and i want to change this much annoying behavior. – Daniel T. Magnusson Sep 14 '09 at 8:05
up vote 15 down vote accepted

According to the comments on this page, putting

bind '"\t":menu-complete'

in your .bashrc should enable cyclic tab completion.

See section 8.4.6 of the Bash Reference Manual for more information.

share|improve this answer
Thanks, very nice find! - Just love the comment on that page "It has taken me years to find out that bash supports cyclic tab completion"- hah, superuser wins! – Daniel T. Magnusson Sep 14 '09 at 8:08
Thanks! Once this is implemented, is there an override key combination to use the old way momentarily? Shift+TAB, for instance. – Ace Jan 14 '12 at 15:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .