1ebc98b9ede5ad5084b3e504e4fc8c01cb93be71
- Author
- Joe Block <jpb@unixorn.net>
- Committer
- Joe Block <jpb@unixorn.net>
- Date
Message
Don't clobber HISTSIZE or SAVEHIST if they're already set
Diff
1diff --git a/lib/history.zsh b/lib/history.zsh
2index 1d83e56e3a63391133304d3f92596fab97fa1d55..12dbcf4eedcc1053fa1bb5cfaaa9ced48c99b5a5 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