Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: more tcsh-like history-search capability
- X-seq: zsh-users 3462
- From: "E. Jay Berkenbilt" <ejb@xxxxxx>
- To: duvall@xxxxxxxxxxxxxxxxxx
- Subject: Re: more tcsh-like history-search capability
- Date: Wed, 18 Oct 2000 23:57:40 -0400
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <20001017200747.A28158@xxxxxxxxxxxxxxxxxx> (message from Danek Duvall on Tue, 17 Oct 2000 20:07:47 -0700)
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
> > By default, zsh's history-search functions look through history for
> > lines whose first word starts with the first word on the command line.
> > I prefer to search for commands that start with the string before the
> > cursor.
>
> So do I. And zsh even has these built-in:
>
> history-beginning-search-backward
> history-beginning-search-forward
>
> :)
Wow. It does *exactly* what my code does. I even looked for
something in the documentation but I guess I missed it. Oh well --
yet another wheel reinvention. Thanks for bringing this to my
attention. :-)
At least my reinvented wheel was still round. :-)
Jay
Messages sorted by:
Reverse Date,
Date,
Thread,
Author