Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: feature idea: customizable string in history file
- X-seq: zsh-users 12701
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: feature idea: customizable string in history file
- Date: Sat, 8 Mar 2008 12:10:57 +0100
- In-reply-to: <20080307170808.GC11566@xxxxxxxxxxxxxxxxxxx>
- Kreccount: 1
- Mail-followup-to: ZSH User List <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080307142825.GA23322@xxxxxxxxx> <20080307170808.GC11566@xxxxxxxxxxxxxxxxxxx>
On 2008-03-07, 09:08, Wayne Davison wrote:
> One simple way to do that would be to modify the writing of the extended
> history in savehistfile() (see Src/hist.c). If you add the name at the
> end, like this:
>
> ... fprintf(out, ": %ld:%ld:%s;", ...
>
> The parsing code won't care about the extra characters since it just
> skips to the ';' after parsing the first 2 items.
Great! Could we make that customizable via .zshrc?
I'd hate to patch every new version of zsh. :-(
This feature (adding extra info from an env variable to the zsh history)
shouldn't be that uninteresting to others either...
Thanks,
Andy.
--
Bad or missing mouse driver. Spank the cat? (Y/N)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author