aboutsummaryrefslogtreecommitdiffstats
path: root/chapter9/inputrc.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-12 15:21:47 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-12 15:21:47 -0500
commitbd6f662dfb7d293b8143785a7b28c9bfeccd0ee2 (patch)
tree7dc0e09c16606322d2cfa686d2a7ee2bc92b3341 /chapter9/inputrc.sh
parent7215575834db88849e6ba78de8d179b4a80bdeb6 (diff)
Add bash profile, boot script configuration, inputrc and shell configuration to chapter9.
Diffstat (limited to 'chapter9/inputrc.sh')
-rw-r--r--chapter9/inputrc.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/chapter9/inputrc.sh b/chapter9/inputrc.sh
new file mode 100644
index 0000000..bab2a35
--- /dev/null
+++ b/chapter9/inputrc.sh
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+cat > /etc/inputrc << "EOF"
+# Begin /etc/inputrc
+# Modified by Chris Lynn <roryo@roryo.dynup.net>
+
+# Allow the command prompt to wrap to the next line
+set horizontal-scroll-mode Off
+
+# Enable 8bit input
+set meta-flag On
+set input-meta On
+
+# Turns off 8th bit stripping
+set convert-meta Off
+
+# Keep the 8th bit for display
+set output-meta On
+
+# none, visible or audible
+set bell-style none
+
+# All of the following map the escape sequence of the value
+# contained in the 1st argument to the readline specific functions
+"\eOd": backward-word
+"\eOc": forward-word
+
+# for linux console
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line
+"\e[5~": beginning-of-history
+"\e[6~": end-of-history
+"\e[3~": delete-char
+"\e[2~": quoted-insert
+
+# for xterm
+"\eOH": beginning-of-line
+"\eOF": end-of-line
+
+# for Konsole
+"\e[H": beginning-of-line
+"\e[F": end-of-line
+
+# End /etc/inputrc
+EOF