diff options
author | Robby Russell <robby@planetargon.com> | 2014-12-14 16:34:08 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-12-14 16:34:08 -0800 |
commit | 885e8187ad51460ffe0a9fbf1195589acb6767b0 (patch) | |
tree | c1dd8ed3126a6fd15bbd72f17f10ab811a4314c7 /lib | |
parent | eced76e0fd80e6ca3908fb50b7e29c6beb4fad8b (diff) | |
parent | 5bf715787a4483cafd70461417cb9a1bf8d1509f (diff) | |
download | zsh-885e8187ad51460ffe0a9fbf1195589acb6767b0.tar.gz zsh-885e8187ad51460ffe0a9fbf1195589acb6767b0.tar.bz2 zsh-885e8187ad51460ffe0a9fbf1195589acb6767b0.zip |
Merge pull request #3359 from unixorn/dont-clobber-histsize-and-savehist
Don't clobber $HISTSIZE and $SAVEHIST
Diffstat (limited to 'lib')
-rw-r--r-- | lib/history.zsh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/history.zsh b/lib/history.zsh index 1d83e56e3..179c22848 100644 --- a/lib/history.zsh +++ b/lib/history.zsh @@ -1,9 +1,13 @@ ## Command history configuration -if [ -z $HISTFILE ]; then +if [ -z "$HISTFILE" ]; then HISTFILE=$HOME/.zsh_history fi -HISTSIZE=10000 -SAVEHIST=10000 +if [ -z "$HISTSIZE" ]; then + HISTSIZE=10000 +fi +if [ -z "$SAVEHIST" ]; then + SAVEHIST=10000 +fi setopt extended_history setopt hist_expire_dups_first |