From a534b34bb3330a5539d89fbbe582880131841669 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 1 Dec 2022 23:14:08 +0200 Subject: Added keybindings for down/up-line-or-history, history-search-forward/backward and autosuggest-execute/accept --- .config/zsh/.zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 10887eb..06c5713 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -228,6 +228,12 @@ bindkey "^W" backward-kill-word bindkey "^H" backward-delete-char # Control-h also deletes the previous char bindkey "^U" backward-kill-line +bindkey "^[n" down-line-or-history +bindkey "^[p" up-line-or-history +bindkey "^N" history-search-forward # or you can bind it to the down key "^[[B" +bindkey "^P" history-search-backward # or you can bind it to Up key "^[[A" +bindkey '^X' autosuggest-execute +bindkey '^Y' autosuggest-accept # Edit line in vim with alt-e autoload edit-command-line; zle -N edit-command-line -- cgit v1.2.3