From 94efda6be3a83afc6dc6434459aa9d776da5a866 Mon Sep 17 00:00:00 2001 From: Mark Riedesel Date: Tue, 8 Oct 2024 08:32:11 -0500 Subject: [PATCH] add zsh-history-substring-search zmodule --- .config/zsh/.zimrc | 1 + .config/zsh/.zshrc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.config/zsh/.zimrc b/.config/zsh/.zimrc index e9b7b65..64b91e2 100644 --- a/.config/zsh/.zimrc +++ b/.config/zsh/.zimrc @@ -7,3 +7,4 @@ zmodule zsh-users/zsh-autosuggestions zmodule ssh zmodule utility zmodule pacman +zmodule zsh-users/zsh-history-substring-search diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 5b43cc3..0474913 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -12,11 +12,13 @@ setopt numericglobsort # Sort filenames numerically when it makes sense setopt nobeep # No beep setopt appendhistory # Immediately append history instead of overwriting setopt histignorealldups # If a new command is a duplicate, remove the older one +setopt histsavenodups # Save no duplicates setopt autocd # If only directory path is entered, cd there. setopt inc_append_history # Save commands are added to the history immediately, otherwise only when shell exits. setopt histignorespace # Don't save commands that start with space setopt extended_history # Include extra info about executed commands setopt hist_reduce_blanks # Reduce blanks from commands in history +alias history="fc -l 1" zstyle ':completion:*' rehash true # Automatically find new executables in path zstyle ':completion:*' accept-exact '*(N)'