aboutsummaryrefslogtreecommitdiff
path: root/pdksh
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 /pdksh
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 'pdksh')
-rw-r--r--pdksh/pdkshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdksh/pdkshrc b/pdksh/pdkshrc
index 6039eea3..48799c2e 100644
--- a/pdksh/pdkshrc
+++ b/pdksh/pdkshrc
@@ -4,7 +4,7 @@ set -o emacs
# Save history
HISTFILE=$HOME/.pdksh_history
-HISTSIZE=$((1 << 12))
+HISTSIZE=$((1 << 10))
# Load any supplementary scripts
for pdkshrc in "$HOME"/.pdkshrc.d/*.pdksh ; do