summaryrefslogtreecommitdiff
path: root/lib/history.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/history.zsh')
-rw-r--r--lib/history.zsh5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/history.zsh b/lib/history.zsh
index 876936b87..1d83e56e3 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -1,9 +1,10 @@
## Command history configuration
-HISTFILE=$HOME/.zsh_history
+if [ -z $HISTFILE ]; then
+ HISTFILE=$HOME/.zsh_history
+fi
HISTSIZE=10000
SAVEHIST=10000
-setopt append_history
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups # ignore duplication command history list