summaryrefslogtreecommitdiff
path: root/lib/history.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/history.zsh')
-rw-r--r--lib/history.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/history.zsh b/lib/history.zsh
index 0f04de215..0ee8cfe7a 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -27,8 +27,8 @@ esac
## History file configuration
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
-HISTSIZE=50000
-SAVEHIST=10000
+[ "$HISTSIZE" -lt 50000 ] && HISTSIZE=50000
+[ "$SAVEHIST" -lt 10000 ] && SAVEHIST=10000
## History command configuration
setopt extended_history # record timestamp of command in HISTFILE