Add CTRL+Arrow key, ALT+Arrow key keybinds.

This commit is contained in:
Arthur Khachaturov 2023-12-01 01:16:38 +03:00
parent da0b0bc5e9
commit 58c45aa340

10
.zshrc
View file

@ -11,10 +11,6 @@ setopt inc_append_history
setopt extended_history
setopt hist_find_no_dups
# enable alt+arrow movements
bindkey "^[[1;3D" forward-word
bindkey "^[[1;3C" backward-word
# change word-style
autoload -U select-word-style
select-word-style b
@ -23,6 +19,12 @@ select-word-style b
setopt extendedglob
bindkey -e
# enable alt+arrow movements
bindkey "^[[1;3C" forward-word
bindkey "^[[1;5C" forward-word
bindkey "^[[1;3D" backward-word
bindkey "^[[1;5D" backward-word
# completions
zstyle :compinstall filename '/home/wzray/.zshrc'
zstyle ':completion:*' menu select