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

Re: Shell history, the same in each session



On 1/16/21 4:25 PM, Forrest Aldrich wrote:
I'm somewhat new to ZSH; however, I'm using the DEV version on MacOS Big Sur and I do keep it up to date.

One issue I'm having is that my ZSH shell history seems to be unified -- that is, in different terminal windows I get shell history from separate sessions, which is not what I would expect (or desire).  It makes finding recent commands a pain -- and I
wonder if there is a setting I've overlooked that will keep shell history in the current window isolated to that terminal session (until I exit, etc).

Thanks.


Something is enabling the share_history option, by default it is off.
you could ''unsetopt share_history'' to disable it or find where it is being set and remove it.




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