I have two terminals open, both running zsh. The history options which I currently have set are these:
export HISTFILE=~/.histfile export HISTSIZE=10000 export SAVEHIST=10000 setopt HIST_IGNORE_ALL_DUPS setopt HIST_EXPIRE_DUPS_FIRST setopt HIST_SAVE_NO_DUPS setopt APPEND_HISTORY setopt EXTENDED_HISTORY
When I type
fc -l, in either terminal, I see the last 16 commands (numbered). These histories are different in either shell, and are both different from what I see when I look inside
As far as I can tell from the
man zshoptions page, this is to be expected, and upon exiting the shell, its commands will be appended to the history.
In that case, where is each terminal's individual history stored until that point?