Zsh
Parameters Used by the Shell
HISTFILE- The file to save the history in when an interactive shell exits. If unset, the history is not saved.
SAVEHIST-
The maximum number of history events to save in the history file.
If this is made local, it is not implicitly set to 0, but may be explicitly set locally.