2589cdd8f9603d03f5b84aab57fda96ac0259f79

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

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.

Diff

 1diff --git a/lib/history.zsh b/lib/history.zsh
 2index 8a1bc010dfd96cb4f26d458aaf06668fd2cc8bf2..7d4e59d0058ceb33c5305a6616291dc4a2b75f8c 100644
 3--- a/lib/history.zsh
 4+++ b/lib/history.zsh
 5@@ -28,7 +28,7 @@ esac
 6 
 7 ## History file configuration
 8 [ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
 9-HISTSIZE=10000
10+HISTSIZE=50000
11 SAVEHIST=10000
12 
13 ## History command configuration