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

Re: "zed -h" truncates history



On Fri, Oct 30, 2026 at 3:10 PM vapnik spaknik <vapniks@xxxxxxxxx> wrote:
>
> If I set FCEDIT="zed -h" and then edit the previous command

"zed -h" is not intended to be used in FCEDIT.  It's intended to edit
your entire current history, for example to remove commands that
contain passwords in clear text, or other history events that you
don't want saved.  If used in FCEDIT, it will be passed a file name
that contains only the previous command, which will then replace your
full history exactly as you described.

For FCEDIT you should use just "zed" with no options.




Messages sorted by: Reverse Date, Date, Thread, Author