From 769166386ce2cd28faa0966fefd8c5c0e4497222 Mon Sep 17 00:00:00 2001 From: Fabian Ising Date: Wed, 14 Oct 2026 13:24:06 +0200 Subject: [PATCH] [ZSH] Set history size before anything interruptible An aborted startup kept /etc/zshrc's SAVEHIST=1000 and truncated ~/.zsh_history on exit. Co-Authored-By: Claude Opus 5.5 --- zsh/.zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 1a88625..41d8b12 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,3 +1,9 @@ +# First, so an interrupted startup (Ctrl-C) doesn't keep /etc/zshrc's +# SAVEHIST=1000 and truncate the history file on exit +HISTSIZE=100000 +SAVEHIST=100000 +setopt EXTENDED_HISTORY + source "${ZDOTDIR:-$HOME}/.zsh/lib/startup.zsh" [[ -d ${ZDOTDIR:-$HOME}/.cache/zsh ]] || mkdir -p ${ZDOTDIR:-$HOME}/.cache/zsh