From f208a1c9b65dbc4158d073b4376526624d40523c Mon Sep 17 00:00:00 2001 From: Archaic Date: Fri, 24 Jun 2005 14:52:13 +0000 Subject: [PATCH] Rewrote the inputrc page. (merged from trunk r6128) git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.1/BOOK@6146 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 3 +++ chapter07/inputrc.xml | 51 ++++++++++++----------------------------- general.ent | 4 ++-- 3 files changed, 20 insertions(+), 38 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 7bc93ce0e..b1f7d31fc 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -85,6 +85,9 @@ First a summary, then a detailed log. +June 23rd, 2005 [archaic]: Rewrote the inputrc page. + + June 22nd, 2005 [archaic]: Added a link to point to test results. diff --git a/chapter07/inputrc.xml b/chapter07/inputrc.xml index 842f35929..21558f729 100644 --- a/chapter07/inputrc.xml +++ b/chapter07/inputrc.xml @@ -9,50 +9,29 @@ /etc/inputrc -The /etc/inputrc file deals with mapping -the keyboard for specific situations. This file is the start-up file -used by Readline, the input-related -library used by Bash and most other -shells. +The inputrc file handles keyboard mapping for +specific situations. This file is the startup file used by Readline — the +input-related library — used by Bash and most other shells. -For more information, see the bash info page, section -Readline Init File. The -readline info page is -also a good source of information. +Most people do not need user-specific keyboard mappings so the command +below creates a global /etc/inputrc used by everyone who +logs in. If you later decide you need to override the defaults on a per-user +basis, you can create a .inputrc file in the user's home +directory with the modified mappings. -Global values are set in /etc/inputrc. -Personal user values are set in ~/.inputrc. The -~/.inputrc file will override the global settings -file. A later page sets up Bash to use -/etc/inputrc if there is no -.inputrc for a user when -/etc/profile is read (usually at login). To make -the system use both, or to negate global keyboard handling, it is a -good idea to place a default .inputrc into the -/etc/skel directory for use -with new users. +For more information on how to edit the inputrc file, see info +bash under the Readline Init File section. +info readline is also a good source of information. -Below is a base /etc/inputrc, along with -comments to explain what the various options do. Note that comments -cannot be on the same line as commands. - -To create the .inputrc in /etc/skel using the command below, change -the command's output to /etc/skel/.inputrc and be sure to -check/set permissions afterward. Copy that file to -/etc/inputrc and the home directory of any user -already existing on the system, including root, -that needs a private version of the file. Be certain to use the --p parameter of cp to -maintain permissions and be sure to change owner and group -appropriately. +Below is a generic global inputrc along with comments +to explain what the various options do. Note that comments cannot be on the same +line as commands. Create the file using the following command: cat > /etc/inputrc << "EOF" # Begin /etc/inputrc # Modified by Chris Lynn <roryo@roryo.dynup.net> -# Make sure we don't output everything on the 1 line +# Allow the command prompt to wrap to the next line set horizontal-scroll-mode Off # Enable 8bit input diff --git a/general.ent b/general.ent index 4e2ab2adb..aaaf63862 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ - - + +