From 6e210673394b36a7a5aad9c31bb619b5c5cbdb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Wed, 29 Apr 2015 16:46:50 +0100 Subject: 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 --- essential-files/etc/inputrc | 38 ++++++++++++++++++++++++++++++++++++++ essential-files/manifest | 1 + 2 files changed, 39 insertions(+) create mode 100644 essential-files/etc/inputrc diff --git a/essential-files/etc/inputrc b/essential-files/etc/inputrc new file mode 100644 index 00000000..ddee44cd --- /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 1294534f..960111c4 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 -- cgit v1.2.1