From b1f735874340ead4f48b5fb733b382803345d6a2 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Mon, 3 Jun 2024 17:23:49 -0500 Subject: feat(zsh): better history settings --- dot_zshrc.tmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'dot_zshrc.tmpl') 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 -- cgit v1.2.3