From 327ee2b8779aebdaeb027ad9cdb84d661dd36442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Mon, 14 Nov 2016 13:14:32 +0100 Subject: [PATCH] Don't blindly overwrite history variables OMZ should respect HISTSIZE and SAVEHIST if they are set before OMZ is run. --- lib/history.zsh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/history.zsh b/lib/history.zsh index 5de71c2d3..b8d140499 100644 --- a/lib/history.zsh +++ b/lib/history.zsh @@ -1,10 +1,7 @@ ## Command history configuration -if [ -z "$HISTFILE" ]; then - HISTFILE=$HOME/.zsh_history -fi - -HISTSIZE=10000 -SAVEHIST=10000 +env_default HISTFILE "$HOME/.zsh_history" +env_default HISTSIZE 10000 +env_default SAVEHIST 10000 # Show history case $HIST_STAMPS in