zsh-users
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayne@clari.net>
To: schaefer@nbn.com
Cc: zsh-users@math.gatech.edu
Subject: Re: How to make APPENDHISTORY useful?
Date: Thu, 13 Feb 1997 15:53:43 -0800	[thread overview]
Message-ID: <199702132353.PAA24151@bebop.clari.net> (raw)
In-Reply-To: schaefer's message of Thu, 13 Feb 1997 14:29:20 -0800. <970213142920.ZM22919@candle.brasslantern.com>

"Bart Schaefer" writes:
> but once the file gets full you're back to one of
> the states described above.

Not quite.  Since savehistfile() only appends newly entered lines, the
above only occurs if SAVEHIST new lines were entered since starting the
shell.

One simple solution is to have zsh call savehistfile() every N lines when
APPEND_HISTORY is set.  This would intersperse the lines from multiple
shells nicely, and doesn't require you to exit an old shell before its
history can be used in new shells.  It might be nice if the history file
was not rewritten for every auto-append, allowing the file to grow a
while before going to the extra work of truncating it.

..wayne..


  parent reply	other threads:[~1997-02-14  0:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-13 22:29 Bart Schaefer
1997-02-13 23:12 ` Greg Badros
1997-02-13 23:53 ` Wayne Davison [this message]
1997-02-14  1:10   ` Bart Schaefer

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=199702132353.PAA24151@bebop.clari.net \
    --to=wayne@clari.net \
    --cc=schaefer@nbn.com \
    --cc=zsh-users@math.gatech.edu \
    /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).