ZSH Config: add ctrl+arrrow keys for word navigation

This commit is contained in:
Aroy-Art 2025-01-16 22:00:13 +01:00
parent 2eee8ff406
commit d722430c2f
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -42,6 +42,12 @@ if [[ "${terminfo[kend]}" != "" ]]; then
bindkey "${terminfo[kend]}" end-of-line # [End] - Go to end of line
fi
bindkey '^[[2~' overwrite-mode # Insert key
# Navigate words with ctrl+arrow keys
bindkey '^[Oc' forward-word #
bindkey '^[Od' backward-word #
bindkey '^[[1;5D' backward-word #
bindkey '^[[1;5C' forward-word #
####################################################################################################################################################