885e8187ad51460ffe0a9fbf1195589acb6767b0
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #3359 from unixorn/dont-clobber-histsize-and-savehist
Don't clobber $HISTSIZE and $SAVEHIST
Diff
1diff --git a/lib/history.zsh b/lib/history.zsh
2index 1d83e56e3a63391133304d3f92596fab97fa1d55..179c22848728383a4311ffe2a750f4c4daa03804 100644
3--- a/lib/history.zsh
4+++ b/lib/history.zsh
5@@ -1,9 +1,13 @@
6 ## Command history configuration
7-if [ -z $HISTFILE ]; then
8+if [ -z "$HISTFILE" ]; then
9 HISTFILE=$HOME/.zsh_history
10 fi
11-HISTSIZE=10000
12-SAVEHIST=10000
13+if [ -z "$HISTSIZE" ]; then
14+ HISTSIZE=10000
15+fi
16+if [ -z "$SAVEHIST" ]; then
17+ SAVEHIST=10000
18+fi
19
20 setopt extended_history
21 setopt hist_expire_dups_first