From 164ee66bc057b0d6321bde3a9e4e3ea210cc2077 Mon Sep 17 00:00:00 2001 From: Amr Alaa Date: Sat, 30 Jun 2018 20:58:12 +0200 Subject: [PATCH] Fix: Do not override values of HISTSIZE and SAVEHIST if configured previously This causes history file to be truncated to 10000 lines on exit --- lib/history.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/history.zsh b/lib/history.zsh index 7d4e59d00..f24510eed 100644 --- a/lib/history.zsh +++ b/lib/history.zsh @@ -28,8 +28,8 @@ esac ## History file configuration [ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history" -HISTSIZE=50000 -SAVEHIST=10000 +[ -z "$HISTSIZE" ] && HISTSIZE=50000 +[ -z "$SAVEHIST" ] && SAVEHIST=10000 ## History command configuration setopt extended_history # record timestamp of command in HISTFILE