From b78abdb5b58a4cb4d2693d746466da5a34f22783 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Sun, 9 Mar 2025 23:10:52 +0100 Subject: [PATCH] ZSH Config: add up & down key mapping for history search --- Configs/ZSHShell/.zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Configs/ZSHShell/.zshrc b/Configs/ZSHShell/.zshrc index 7b48d86..756db74 100644 --- a/Configs/ZSHShell/.zshrc +++ b/Configs/ZSHShell/.zshrc @@ -146,4 +146,13 @@ if [ -r "$HOME/.zprofile" ] ; then fi ################################################################################### +################################################################################### +# bind UP and DOWN arrow keys to history substring search +zmodload zsh/terminfo +bindkey "$terminfo[kcuu1]" history-substring-search-up +bindkey "$terminfo[kcud1]" history-substring-search-down +bindkey '^[[A' history-substring-search-up +bindkey '^[[B' history-substring-search-down +################################################################################### + ####################################################################################################################################################