Persist zsh command history

This commit is contained in:
Brian Pooe 2026-07-06 18:58:59 +02:00
parent 97ad246684
commit a33c46d130

9
.zshrc
View file

@ -5,6 +5,15 @@ if [ -x /home/linuxbrew/.linuxbrew/bin/brew ]; then
fi
export PATH="$HOME/.local/bin:$PATH"
# Persistent command history. Keep HISTSIZE larger than SAVEHIST so zsh has
# room to merge history from other active shells before trimming the file.
HISTFILE="$HOME/.zsh_history"
HISTSIZE=100000
SAVEHIST=80000
setopt APPEND_HISTORY
setopt SHARE_HISTORY
setopt HIST_REDUCE_BLANKS
# ===================== User-tunable environment ========================
# Single place to control the look of the whole stack.
export KANAGAWA_THEME="wave" # wave | dragon