From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Mon, 10 Apr 2006 18:06:49 +0200 From: "Nikolai Weibull" To: "Zsh Users" Subject: Re: In response to the maximum size of $HISTSIZE MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Seq: zsh-users 10149 On 4/10/06, Francisco Borges wrote: > =BB On Mon, Apr 10, 2006 at 04:10PM +0200, Nikolai Weibull wrote: > > > Why not make it possible to have a time-based history-scheme instead > > of a static size-based one? What I mean is that since Zsh allows > > history items to be timestamped, add another parameter $HISTAGE and > > keep items "younger" than that value. It could be given in days, > > weeks, months and/or years, I suppose. > What happens with mistakes setting date? What happens when you go on > vacantion? Abandon the account for a while? So you lose the history that isn't interesting any more. I really don't see what you're getting at. Choose and mix the settings as you like. What is wrong with being able to cap the age of the history entries? > You could then happily grep (or zgrep) on it. Which is not the same as > zsh's history searching power, but how often do you need to retrieve a 2 > or 3 year old command? That's the same thing as saying HISTSIZE should be capped as well, as it will fill up with two- or three-year-old commands if you set it to a high enough value. nikolai