zsh-users
 help / color / mirror / code / Atom feed
From: "Nikolai Weibull" <now@bitwi.se>
To: "Zsh Users" <zsh-users@sunsite.dk>
Subject: Re: In response to the maximum size of $HISTSIZE
Date: Mon, 10 Apr 2006 18:06:49 +0200	[thread overview]
Message-ID: <dbfc82860604100906j365780c2j38196bd9db41706e@mail.gmail.com> (raw)

On 4/10/06, Francisco Borges <f.borges@rug.nl> wrote:
> » 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


             reply	other threads:[~2006-04-10 16:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-10 16:06 Nikolai Weibull [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-04-10 17:04 Francisco Borges
2006-04-10 15:37 Francisco Borges
2006-04-10 14:10 Nikolai Weibull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dbfc82860604100906j365780c2j38196bd9db41706e@mail.gmail.com \
    --to=now@bitwi.se \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).