|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Patch to ksh adding history-search-backward/forward
From: Martin Hedenfalk (martin.hedenfalk
gmail.com)
Date: Sat Sep 02 2006 - 08:19:14 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 9/1/06, Marco Peereboom <slash
peereboom.us> wrote:
> I actually think this might be useful. The one thing that irritates me about
> ksh is that when you use persistent history the search in history is for
> everything that user has typed instead of what was typed on the current
> terminal followed by the complete history (hope that sentence makes sense).
Eh... not sure I'm following you there. All I want to do is start
typing a command, remembering I've done it before, then press up arrow
(or meta-p) and have it recalled from history.
/martin
> Removing dups from searches is also very nice.
>
> FWIW,
> /marco
>
> On Fri, Sep 01, 2006 at 11:09:51AM +0200, Otto Moerbeek wrote:
> > On Fri, 1 Sep 2006, Martin Hedenfalk wrote:
> >
> > > Sorry for bumping and replying to myself, but I'd like to know what I
> > > did wrong with this patch. Was the feature just not wanted, was it a
> > > bad patch or was there some other reason it was so totally ignored?
> >
> > Nobody found the feauture interesting enough, it seems.
> >
> > -Otto
> >
> > >
> > > An updated patch against -current is available at
> > > http://bzero.se/patches/ksh-history.patch.
> > > Any comment?
> > >
> > > /Martin
> > >
> > > On 3/22/06, Martin Hedenfalk <martin
hedenfalk.se> wrote:
> > > > Here is a patch adding a history-search-backward and -forward function
> > > > to ksh that many bash-users might be accustomed to. It's an implicitly
> > > > anchored version of "search-history" using the prefix of the current
> > > > line up to the cursor as search pattern, discarding duplicate matches.
> > > > Can be bound to up/down arrow.
> > > >
> > > > The patch is also available at
> > > > http://hedenfalk.se/patches/ksh-history.patch in case it gets messed up
> > > > in the mail.
> > > >
> > > > I've been using this patch for a week now. It seems to be stable.
> > > >
> > > > /Martin
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]