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

Re: .zsh_history



On Sat, Apr 8, 2023 at 7:23 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> On 2023-04-08 09:53, Roman Perepelitsa wrote:
> >
> > Yes. If you exit all shells, you'll have history from all of them
> > saved within $HISTFILE.
> >
> I can't remember if it's stock or something I cobbled together for
> myself, but my history is updated in real time, I don't need to exit.

Indeed, there are options that do this. All options are described in
`man zshoptions`.

Perry's options (which I've quoted in my original reply) require him
to exit zsh before history is written.

Roman.




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