I have two files in a directory, test1 and test2. If I type
less te<TAB>
completion kicks in and expands te to test. If I hit TAB a second time nothing happens, and only when I press TAB a third time do I get offered the two matching filenames I might mean.
My question is, why does it take two presses after bash completes as far as it can, before I get offered my choices. Surely it would make more sense to be offered them after the second (in total) of the presses?
set show-all-if-ambiguous on
to~/.inputrc
to get this behavior – Sundeep Jul 18 '17 at 14:58