summaryrefslogtreecommitdiff
path: root/lib/history.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/history.zsh')
-rw-r--r--lib/history.zsh15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/history.zsh b/lib/history.zsh
new file mode 100644
index 000000000..a093aa27c
--- /dev/null
+++ b/lib/history.zsh
@@ -0,0 +1,15 @@
+# History stuff.
+setopt HIST_VERIFY
+setopt INC_APPEND_HISTORY
+setopt SHARE_HISTORY
+setopt EXTENDED_HISTORY
+setopt HIST_IGNORE_DUPS
+
+## Command history configuration
+#
+HISTFILE=$ZSH/log/.zsh_history
+HISTSIZE=2500
+SAVEHIST=2500
+setopt hist_ignore_dups # ignore duplication command history list
+setopt share_history # share command history data
+