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 ## Command history configuration
if [ -z "$HISTFILE" ]; then env_default HISTFILE "$HOME/.zsh_history"
HISTFILE=$HOME/.zsh_history env_default HISTSIZE 10000
fi env_default SAVEHIST 10000
HISTSIZE=10000
SAVEHIST=10000
# Show history # Show history
case $HIST_STAMPS in case $HIST_STAMPS in