浏览代码

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.
Marc Cornellà 6 年之前
父节点
当前提交
2589cdd8f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/history.zsh

+ 1 - 1
lib/history.zsh

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