aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-18 15:45:51 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-18 15:47:36 +1200
commite6cae908d07ef35374919883c9aa868fb86600cc (patch)
tree00dd71acf7d9e4150e8d694fb2475e1653ac5fac /zsh
parentSuppress stderr from command -v checks (diff)
downloaddotfiles-e6cae908d07ef35374919883c9aa868fb86600cc.tar.gz
dotfiles-e6cae908d07ef35374919883c9aa868fb86600cc.zip
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.
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zshrc4
1 files changed, 2 insertions, 2 deletions
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"