On Wed, 01 Oct 2003 20:04:15 -0300 Herculano de Lima Einloft Neto <[EMAIL PROTECTED]> wrote:
> > Hello, I would like to bind menu-complete with a -1 argument to > something, S-TAB for instance. Is there any way to do that? Other shells > offer reverse-menu-complete. If I could bind readline arguments.. > > bind S-TAB:'menu-complete(-1)' - is there something like this? > Hi Herculano, This is a bit of a tough one, and depends on how you have readline configured (ie. emacs or vi mode). If you add the following to the end of your /etc/inputrc file you should get what you want: $if mode=vi "\C-0-": digit-argument TAB: menu-complete "\e[Z": "\C-0-\t" $else TAB: menu-complete "\e[Z": "\M--1\t" $endif "man readline" has all the details about why this works. HTH, Sean -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list