From 8d4497dab2740208cb2de18eaa9b0bb41654eeee Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 9 Aug 2021 19:43:11 +0200 Subject: [PATCH] zsh: add bindings for history search --- files/zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/zshrc b/files/zshrc index b9d233e..09f8484 100644 --- a/files/zshrc +++ b/files/zshrc @@ -31,6 +31,10 @@ zle-keymap-select() { } zle -N zle-keymap-select +# Search through history in insert mode. +bindkey -M viins '^j' history-beginning-search-forward +bindkey -M viins '^k' history-beginning-search-backward + # Restore some common and useful emacs mode shortcut. bindkey -M viins '^a' vi-beginning-of-line bindkey -M viins '^e' vi-end-of-line