export SAVEHIST=100000

Category: Terminal Configuration

export SAVEHIST=100000

Save up to 100,000 commands in zsh history file

The zsh equivalent of HISTFILESIZE. Zsh writes to ~/.zsh_history. Combined with `setopt SHARE_HISTORY`, all open terminals share the same history file in real time.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.