ZSH: Moved settings for history-substring-search to it's own config file.

This commit is contained in:
Christian Baer 2024-10-28 18:31:52 +01:00
parent 275793ea16
commit 6b61b3efc4
3 changed files with 5 additions and 12 deletions

View File

@ -13,12 +13,4 @@ setopt incappendhistory
setopt histignorespace
setopt histnostore
setopt share_history
export HISTORY_IGNORE="([bf]g *|disown|cd ..|cd -)"
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1
# # Make up and down arrow take whats typed on the commandline in to account.
# autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
# zle -N up-line-or-beginning-search
# zle -N down-line-or-beginning-search
export HISTORY_IGNORE="([bf]g *|disown|cd ..|cd -)"

View File

@ -1,3 +0,0 @@
# Search
bindkey '^[[A' history-substring-search-up # Up arrow
bindkey '^[[B' history-substring-search-down # down arrow

View File

@ -0,0 +1,4 @@
# zsh-history-substring-search configuration
bindkey '^[[A' history-substring-search-up # or '\eOA'
bindkey '^[[B' history-substring-search-down # or '\eOB'
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1