zsh: add bindings for history search

This commit is contained in:
Fernando Schauenburg 2021-08-09 19:43:11 +02:00
parent 8ea77e45ba
commit 8d4497dab2

View file

@ -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