zsh-workers
 help / color / mirror / code / Atom feed
From: Danek Duvall <duvall@emufarm.org>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: Local history
Date: Fri, 16 Nov 2001 10:01:06 -0800	[thread overview]
Message-ID: <20011116100106.A944@lorien.emufarm.org> (raw)
In-Reply-To: <1489.1005931641@csr.com>; from pws@csr.com on Fri, Nov 16, 2001 at 05:27:21PM +0000

Is this related to the problem I'm having with the following function:

    edh() {
    	local histfile

	histfile=${HISTFILE:-$HOME/.zshist}

	fc -AI $histfile
	vi + $histfile
	fc -R $histfile
    }

The idea is to sync the current history to a file, edit it, and read it
back in.  It used to work back in the 3.1.9 days (I submitted it to the
(users?) list when someone requested similar functionality), but it
broke sometime since.

My normal course is to delete the last few lines of the history.  And
while they disappear from the end of the history, they reappear at the
beginning.  Re-running the function -- where those lines don't appear in
the editor at all -- makes them disappear entirely.

What's never worked is to do the sync to some arbitrary file, though I
don't remember the symptoms of that.

Danek


  parent reply	other threads:[~2001-11-16 18:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-16 17:27 Peter Stephenson
2001-11-16 17:54 ` Oliver Kiddle
2001-11-16 18:01 ` Danek Duvall [this message]
2001-11-19  8:40   ` Wischnowsky, Sven
2001-11-19 16:48     ` Bart Schaefer
2001-11-19 17:36       ` Peter Stephenson
2001-11-19 17:58         ` Bart Schaefer
2001-11-21 18:57       ` history editing Danek Duvall
2001-11-21 22:21   ` Wayne Davison
2001-11-21 22:30     ` Danek Duvall

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=20011116100106.A944@lorien.emufarm.org \
    --to=duvall@emufarm.org \
    --cc=zsh-workers@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).