diff options
| author | srdusr <trevorgray@srdusr.com> | 2022-12-01 23:14:08 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2022-12-01 23:14:08 +0200 |
| commit | a534b34bb3330a5539d89fbbe582880131841669 (patch) | |
| tree | 1178b8967f9a1c73725bcc94ec9947ce5291caab | |
| parent | 1d0810ff6e40062fee2f24e4d8d0c06e6d28c932 (diff) | |
| download | dotfiles-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/.zshrc | 6 |
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 |
