Increment HISTSIZE to fix hist_expire_dups_first

This fixes the old behavior which made it so all duplicates would be
deleted if the command history filled up with unique events.

> You should be sure to set the value of HISTSIZE to a larger number
> than SAVEHIST in order to give you some room for the duplicated
> events, otherwise this option will behave just like HIST_IGNORE_ALL_DUPS
> once the history fills up with unique events.
This commit is contained in:
Marc Cornellà 2018-04-22 15:26:57 +02:00
parent 9f2f22d953
commit 2589cdd8f9
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ esac
## History file configuration ## History file configuration
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history" [ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
HISTSIZE=10000 HISTSIZE=50000
SAVEHIST=10000 SAVEHIST=10000
## History command configuration ## History command configuration