I'm using the following settings on my readline (~/.inputrc):

set show-all-if-ambiguous on
set menu-complete-display-prefix on
set completion-ignore-case on
"\t": menu-complete
"\e[Z": menu-complete-backward

If, for example, there are 3 directories 101, 102 and 103, each with three directories inside them 201, 202 and 203, each with their own files and I type:

$ cd 1 Tab

I get:

$ cd 101/

How do I "accept" this completion so that I can then choose the next directory on the next level down? Like so:

$ cd 1 Tab

$ cd 101/ SomeKeyCombo

$ cd 101/201/

1 Answer 1


After you get $ cd 101/ type additional slash, so it looks like

$ cd 101//

and then Tab.

This double slash will be equivalent to a single slash.

You must log in to answer this question.

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