Don't blindly overwrite history variables

OMZ should respect HISTSIZE and SAVEHIST if they are set before OMZ is run.
This commit is contained in:
Janne Heß 2016-11-14 13:14:32 +01:00 committed by GitHub
commit 327ee2b877

View file

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