Fix arrow keys in ZSH insides WSL/Windows Terminal

Bo Jeanes 2020-04-03 10:23:55 +11:00
parent 36c1936292
commit 1aa3612dd8
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,10 @@ source $FRESH_PATH/build/vendor/zsh-syntax-highlighting/zsh-syntax-highlighting.
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# bind UP and DOWN arrow keys in other terms (was needed in Windows Terminal)
bindkey '^[OA' history-substring-search-up
bindkey '^[OB' history-substring-search-down
# Bind control + LEFT and RIGHT arrow keys to jump by word
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word