From 58c45aa340f483dbd72ebb8ba29c6c2a140eef97 Mon Sep 17 00:00:00 2001 From: Arthur Khachaturov Date: Fri, 1 Dec 2023 01:16:38 +0300 Subject: [PATCH] Add CTRL+Arrow key, ALT+Arrow key keybinds. --- .zshrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index 6e47979..e9952a5 100644 --- a/.zshrc +++ b/.zshrc @@ -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