.zshrc: Fix Ctrl-arrow keys for forward/backword navigation

This commit is contained in:
Alan Orth 2021-06-29 12:50:28 +03:00
parent 7859c22571
commit 067bbef8ef
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

4
.zshrc
View File

@ -15,6 +15,10 @@ bindkey -e
bindkey "^[[3~" delete-char bindkey "^[[3~" delete-char
bindkey "^[3;5~" delete-char bindkey "^[3;5~" delete-char
# make Ctrl-arrow work
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# autocomplete # autocomplete
autoload -Uz compinit autoload -Uz compinit
compinit compinit