diff options
| author | Ibrahim Muftee <ibrahim@muftee.net> | 2024-06-03 17:23:49 -0500 |
|---|---|---|
| committer | Ibrahim Muftee <ibrahim@muftee.net> | 2026-07-01 00:23:31 -0400 |
| commit | b1f735874340ead4f48b5fb733b382803345d6a2 (patch) | |
| tree | cc820c5c47efc683e12f748f5e197cecf870babc | |
| parent | 3308632c952360b6d32743c848e2192f822e20b8 (diff) | |
feat(zsh): better history settings
| -rw-r--r-- | dot_zshrc.tmpl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 368dd9c..3ebe594 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -25,6 +25,16 @@ zmodload zsh/complist compinit _comp_options+=(globdots) # Include hidden files. +# History options +export HISTFILE=$HOME/.zsh_history +export HISTFILESIZE=1000000000 +export HISTSIZE=1000000000 +setopt INC_APPEND_HISTORY +export HISTTIMEFORMAT="[%F %T] " +setopt EXTENDED_HISTORY +setopt HIST_FIND_NO_DUPS +setopt HIST_IGNORE_ALL_DUPS + # vi mode bindkey -v export KEYTIMEOUT=1 |
