Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Local history



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