On Sep 08, 2018 at 18:12:02, tomas@tuxteam.de wrote: > On Sat, Sep 08, 2018 at 05:55:57PM +0200, Michael Wagner wrote: > > On Sep 08, 2018 at 15:29:44, tomas@tuxteam.de wrote: > > > And while we're at it, CTRL-R and start typing a substring of > > > the past command you're looking for: the more letters you have, > > > the more specific the match becomes (also called "reverse > > > incremental search"). > > > > > > Takes a bit to get used to, but is... magic. > > > > > > I'm surprised it is so little known. > > > > This is one of the first things I set when installing a new Debian. > > But you must set it explicitly in /etc/inputrc systemwide or in your > > ~/.inputrc. I don't how this behaviour is in other distris. > > Hm. I have no .inputrc. I have the impression that on my box > it is the default (Debian stretch, but it seems to have been > default for a long time). > > Wait a minute! I've a minimal schroot installation around... > yes, it seems to be default behaviour. You are right. I mixed it up with # alternate mappings for "page up" and "page down" to search the history "\e[5~": history-search-backward "\e[6~": history-search-forward to search after you hit CTRL-R and type the beginnning of the command you search for. Michael -- Lesser artists borrow. Great artists steal.
Attachment:
signature.asc
Description: PGP signature