Fix: Do not override values of HISTSIZE and SAVEHIST if configured previously

This causes history file to be truncated to 10000 lines on exit
This commit is contained in:
Amr Alaa 2018-06-30 20:58:12 +02:00
commit 164ee66bc0
No known key found for this signature in database
GPG key ID: 22F352457C837246

View file

@ -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