From e6cae908d07ef35374919883c9aa868fb86600cc Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 18 Aug 2016 15:45:51 +1200 Subject: Drastically limit amount of history kept Reading really large files seems to be slow in Bash in general, but it's particularly bad in 4.4rc1. I keep encrypted snapshots of my HISTFILE on my home machine, so it's just a little extra step to search them. --- zsh/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc index 90e920ad..014ac3fd 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -3,9 +3,9 @@ bindkey -e # History settings setopt histignorealldups sharehistory -HISTSIZE=$((1 << 12)) -SAVEHIST=$((1 << 24)) HISTFILE=$HOME/.zsh_history +SAVEHIST=$((1 << 12)) +HISTSIZE=$((1 << 10)) # Load POSIX shell functions source "$ENV" -- cgit v1.2.3