about summary refs log tree commit diff
path: root/.config/zsh/history.zsh
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh/history.zsh')
-rw-r--r--.config/zsh/history.zsh12
1 files changed, 7 insertions, 5 deletions
diff --git a/.config/zsh/history.zsh b/.config/zsh/history.zsh
index 3bbe525..702cfae 100644
--- a/.config/zsh/history.zsh
+++ b/.config/zsh/history.zsh
@@ -2,8 +2,10 @@
 HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
 HISTSIZE=10000
 SAVEHIST=$HISTSIZE
-setopt extended_history   # write timestamp
-setopt inc_append_history # write always, not just at end of session
-setopt hist_ignore_space  # add leading space to hide from history
-setopt hist_ignore_dups   # deduplicate commands run twice in a row
-setopt hist_verify        # confirm before executing
+# setopt extended_history     # write timestamp (redundant with share_history?)
+# setopt inc_append_history   # write always, not just at end of session (redundant and exclusive with share_history)
+setopt hist_ignore_space    # add leading space to hide from history
+setopt hist_ignore_dups     # deduplicate commands run twice in a row
+setopt hist_ignore_all_dups # deduplicate entire history file
+setopt hist_verify          # confirm before executing
+setopt share_history        # import all of history in new sessions