From 89793b1a20bcb0a4c7da1d2cff2fb4da77f8da8b Mon Sep 17 00:00:00 2001 From: histalek Date: Tue, 3 Dec 2024 09:43:17 +0100 Subject: [PATCH] feat(zsh): More history configuration I might also move the history file to `$XDG_CACHE_HOME` or something. --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index b957c3b..1c0378b 100644 --- a/.zshrc +++ b/.zshrc @@ -10,6 +10,10 @@ setopt nobeep # No beep setopt appendhistory # Immediately append history instead of overwriting setopt inc_append_history setopt histignorealldups # If a new command is a duplicate, remove the older one +setopt share_history +setopt hist_expire_dups_first +setopt hist_ignore_dups +setopt hist_verify setopt autocd # if only directory path is entered, cd there. zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # Case insensitive tab completion