[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bash reverse menu-complete



Hi,

I was changing the key bindings in bash.  I found the description of
menu-complete in bash reference manual:

menu-complete
    Similar to complete, but replaces the word to be completed with a
single match from the list of possible completions. Repeated execution
of menu-complete steps through the list of possible completions,
inserting each match in turn. At the end of the list of completions,
the bell is rung (subject to the setting of \Bbell-style) and the
original text is restored. An argument of n moves n positions forward
in the list of matches; a negative argument may be used to move
backward through the list. This command is intended to be bound to
TAB, but is unbound by default.

so I added a line in .bashrc
    bind 'TAB:menu-complete'

which works perfectly.  Now the question is: how to bind shift + tab
to move backward?

Manu



Reply to: