Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Local history
- X-seq: zsh-workers 16265
- From: "Wischnowsky, Sven" <Sven.Wischnowsky@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Local history
- Date: Mon, 19 Nov 2001 09:40:44 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Peter wrote:
> I'm still thinking about a way of getting a local command history. My
> particular use is so that zcalc and similar functions can
> keep their own
> data, separate from the main command history.
[Not only does it break lines automatically, it also can't do that right...]
I've been wishing for that, too, when I wrote the nslookup function. Bart
came up with a solution using only fc and the parameters. but unfortunately
that changed the numbers in the currently used history -- not really usable.
I was thinking about doing it only at the very core, namely supporting more
than one history list and a way (option to fc or something) to switch between
these lists. One could then give them names and use $HISTFILE as the prefix
of the filenames for the different histories (or support per-list flags
saying if they are to be saved at all).
That `sounded' not too complicated but I admit that I didn't really look into
it. Maybe it's harder now with all this new history stuff I've not looked at
yet.
Bye
Sven
--
Sven wischnowsky wischnow@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author