On 4/4/13 7:53 AM, reha...@gmail.com wrote: > Hi, > > Ubuntu 12.10, Bash 4.2.37 > > With the following inputrc ([Ctrl-RightArrow] mapped to menu-complete): > set show-all-if-ambiguous on > "\e[1;5C": menu-complete > > Actual Behaviour > ---------------- > > # Type 'ls d' > $ ls d > > # Press <tab> key > $ ls d > desktop/ document/ dropbox/ > $ ls d > > # Press [Ctrl-RightArrow] > $ ls d > desktop/ document/ dropbox/ > $ ls d > desktop/ document/ dropbox/ > $ ls desktop/ > > Desired Behaviour (differs only with last keypress only) > -------------------------------------------------------- > # Press [Ctrl-RightArrow] > $ ls d > desktop/ document/ dropbox/ > $ ls desktop/
This is how bash-4.3 will work: the list of possible completions is displayed, then the first from the list is inserted without any intervening keystrokes required. The display will look pretty much like your desired behavior with only one keypress required. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/