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.zsh9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/zsh/history.zsh b/.config/zsh/history.zsh
new file mode 100644
index 0000000..3bbe525
--- /dev/null
+++ b/.config/zsh/history.zsh
@@ -0,0 +1,9 @@
+# history
+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