commit 3d46b73c27e3e9723e2dcde2ef5a3eb71ba05581
parent 5681da7ebd5f239256548132ec69ae5f8584914a
Author: Luxferre <lux@ferre>
Date: Tue, 30 Jan 2024 16:23:08 +0200
added inputrc
Diffstat:
A | .inputrc | | | 29 | +++++++++++++++++++++++++++++ |
1 file changed, 29 insertions(+), 0 deletions(-)
diff --git a/.inputrc b/.inputrc
@@ -0,0 +1,29 @@
+set editing-mode emacs
+set input-meta on
+set output-meta on
+set enable-keypad on
+set bell-style none
+set show-all-if-ambiguous on
+set completion-ignore-case on
+
+# Home, Insert, Del, End, PgUp, PgDn
+
+"\e[1~": beginning-of-line
+"\e[2~": quoted-insert
+"\e[3~": delete-char
+"\e[4~": end-of-line
+"\e[5~": beginning-of-history
+"\e[6~": end-of-history
+
+# Ctrl+arrows (might not work everywhere)
+
+"\e[1;5C": forward-word
+"\e[1;5D": backward-word
+"\e[5C": forward-word
+"\e[5D": backward-word
+"\e\e[C": forward-word
+"\e\e[D": backward-word
+"\e[H": forward-word
+"\e[F": backward-word
+"\eOH": forward-word
+"\eOF": backward-word