summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2015-04-29 15:46:50 (GMT)
committerBaserock Gerrit <gerrit@baserock.org>2015-05-13 14:03:31 (GMT)
commit6e210673394b36a7a5aad9c31bb619b5c5cbdb78 (patch)
treeb3ed250f57eea1bbe6099d433c9b0d5390f9f26e
parentc15e0ed7b6912d014afb753441526c762178aa8d (diff)
downloaddefinitions-6e210673394b36a7a5aad9c31bb619b5c5cbdb78.tar.gz
Add essential-files/etc/inputrc
So some keys will behave correctly in the terminal This is a combination of the LFS version of this file [1] and the Arch one [2] [1] http://www.linuxfromscratch.org/lfs/view/stable/chapter07/inputrc.html [2] https://projects.archlinux.org/svntogit/packages.git/tree/trunk/inputrc?h=packages/readline Change-Id: Ia45ff5b8c68cabb4767acc18cad326dd7dc561f5
-rw-r--r--essential-files/etc/inputrc38
-rw-r--r--essential-files/manifest1
2 files changed, 39 insertions, 0 deletions
diff --git a/essential-files/etc/inputrc b/essential-files/etc/inputrc
new file mode 100644
index 0000000..ddee44c
--- /dev/null
+++ b/essential-files/etc/inputrc
@@ -0,0 +1,38 @@
+# 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
+
+# for linux console and RH/Debian xterm
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line
+"\e[5~": beginning-of-history
+"\e[6~": end-of-history
+"\e[7~": beginning-of-line
+"\e[3~": delete-char
+"\e[2~": quoted-insert
+"\e[5C": forward-word
+"\e[5D": backward-word
+"\e\e[C": forward-word
+"\e\e[D": backward-word
+"\e[1;5C": forward-word
+"\e[1;5D": backward-word
+
+# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
+"\eOH": beginning-of-line
+"\eOF": end-of-line
+
+# for Konsole and freebsd console
+"\e[H": beginning-of-line
+"\e[F": end-of-line
diff --git a/essential-files/manifest b/essential-files/manifest
index 1294534..960111c 100644
--- a/essential-files/manifest
+++ b/essential-files/manifest
@@ -1,3 +1,4 @@
0040755 0 0 /etc
overwrite 0100644 0 0 /etc/os-release
overwrite 0100644 0 0 /etc/profile
+overwrite 0100644 0 0 /etc/inputrc