With Bash auto-completion, is there a way to cycle through matches using menu-complete only if there are 1-2 options, and use listing with complete otherwise?
home directory contains Desktop, Documents, Downloads, Projects and Public
~$ cd D<tab><tab> # lists matches Desktop Documents Downloads ~$ cd De<tab> # completes Desktop ~$ cd P<tab> # completes Projects ~$ cd Projects<tab> # completes Public
The former is
complete behavior, the latter is
I want it to choose the second option if there are only 1-2 matches, the first if there are 3 or more.