Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Local history
- X-seq: zsh-workers 16262
- From: Danek Duvall <duvall@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: Local history
- Date: Fri, 16 Nov 2001 10:01:06 -0800
- In-reply-to: <1489.1005931641@xxxxxxx>; from pws@xxxxxxx on Fri, Nov 16, 2001 at 05:27:21PM +0000
- Mail-followup-to: Danek Duvall <duvall@xxxxxxxxxxx>, zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1489.1005931641@xxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author