From e4baddae25e9b991286969ed48f69745c68b345e Mon Sep 17 00:00:00 2001 From: Idan Bidani Date: Sat, 9 Sep 2017 18:11:15 -0400 Subject: [PATCH] Enable Ctrl-Arrow backward forward words Provide the same command-line experience as in Linux Ctrl+Left moves cursor a word backward Ctrl+Right moves cursor a word forward --- git-extra/inputrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-extra/inputrc b/git-extra/inputrc index f4c9475b6d..90040a3a49 100644 --- a/git-extra/inputrc +++ b/git-extra/inputrc @@ -62,6 +62,8 @@ $if mode=emacs "\e[1~": beginning-of-line # Home Key "\e[4~": end-of-line # End Key "\e[3~": delete-char # Delete Key + "\e[1;5D": backward-word # Ctrl-Left + "\e[1;5C": forward-word # Ctrl-Right "\e\e[C": forward-word # Alt-Right "\e\e[D": backward-word # Alt-Left "\e[17~": "Function Key 6"