aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2022-12-01 23:14:08 +0200
committersrdusr <trevorgray@srdusr.com>2022-12-01 23:14:08 +0200
commita534b34bb3330a5539d89fbbe582880131841669 (patch)
tree1178b8967f9a1c73725bcc94ec9947ce5291caab
parent1d0810ff6e40062fee2f24e4d8d0c06e6d28c932 (diff)
downloaddotfiles-a534b34bb3330a5539d89fbbe582880131841669.tar.gz
dotfiles-a534b34bb3330a5539d89fbbe582880131841669.zip
Added keybindings for down/up-line-or-history, history-search-forward/backward and autosuggest-execute/accept
-rw-r--r--.config/zsh/.zshrc6
1 files changed, 6 insertions, 0 deletions
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