Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: search through alternative HISTFILE
On Tue, 06 Aug 2013 12:11:12 +0200
Maarten Grachten <maarten.grachten@xxxxxxx> wrote:
> Just for the record. I figured out that it is necessary to reset HISTNO
> to its old value after the search on accumulated history is done
> (otherwise the normal search will be confused):
>
> function accumulated-history-incremental-search-backward () {
> fc -p $ACC_HISTFILE
> HISTNO=$(( $( wc -l < $ACC_HISTFILE ) + 1 ))
> zle history-incremental-search-backward
> fc -P
> HISTNO=$(( $( wc -l < $HISTFILE ) + 1 ))
> }
Yes, you've now basically got something equivalent to the patch.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author