]> git.wh0rd.org Git - home.git/commitdiff
inputrc: support meta+arrow keys to advance words
authorMike Frysinger <vapier@gentoo.org>
Wed, 15 Nov 2017 22:54:39 +0000 (17:54 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 15 Nov 2017 22:54:39 +0000 (17:54 -0500)
.inputrc

index da12255e99502c98de6b82c166afb7803a321ae0..39c18f564b8053747349b5bc06beee0b26dba910 100644 (file)
--- a/.inputrc
+++ b/.inputrc
@@ -16,9 +16,14 @@ set enable-bracketed-paste on
 
 # alt+k to delete back a word (like alt+backspace)
 "\ek": backward-kill-word
+
 # konsole (alt + arrow key)
 "\e[1;3C": forward-word
 "\e[1;3D": backward-word
+# meta + arrow key
+"\e[1;9C": forward-word
+"\e[1;9D": backward-word
+
 # mappings for "page up" and "page down" to step to the beginning/end
 # of the history
 "\e[5~": history-search-backward