source: postlfs/config/inputrc.xml@ 0290a023

10.0 10.1 11.0 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 0290a023 was 0290a023, checked in by Randy McMurchy <randy@…>, 17 years ago

Indexed configuration files and bootscripts in the 'After LFS Configuration Issues' section

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3283 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 3.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="postlfs-config-inputrc" xreflabel="Introduction to /etc/inputrc">
9<sect1info>
10<othername>$LastChangedBy$</othername>
11<date>$Date$</date>
12</sect1info>
13<?dbhtml filename="inputrc.html"?>
14<title>/etc/inputrc</title>
15<indexterm zone="postlfs-config-inputrc">
16<primary sortas="e-etc-inputrc">/etc/inputrc</primary></indexterm>
17<indexterm zone="postlfs-config-inputrc">
18<primary sortas="e-AA.inputrc">~/.inputrc</primary></indexterm>
19
20<para><filename>Inputrc</filename> deals with the mapping of the keyboard for
21certain situations. This file is the start-up file used by
22<application>readline</application>, the input related library used by
23<application>bash</application> and most other shells.</para>
24
25<para>For more information see <command>info bash</command>&mdash;<emphasis
26role="strong">Node: Readline Init</emphasis> file as well as
27<command>info readline</command>. There is a lot that can be done with this
28one rc file.</para>
29
30<para>Global values are set in <filename>/etc/inputrc</filename>.
31Personal user values are set in <filename>~/.inputrc</filename>. The
32<filename>~/.inputrc</filename> file will override the global settings
33file. A later page sets up <application>Bash</application> to use
34<filename>/etc/inputrc</filename> if there is no
35<filename>.inputrc</filename> for a user when
36<filename>/etc/profile</filename> is read (usually at login). If you
37want your system to use both, or don't want <emphasis>global</emphasis>
38keyboard handling, it is a good idea to place a default
39<filename>.inputrc</filename> into the <filename>/etc/skel</filename>
40directory for use with new users.</para>
41
42<para>Below is a base <filename>/etc/inputrc</filename> along with
43comments to explain what the various options do. Note that comments
44can <emphasis>not</emphasis> be on the same line as commands.</para>
45
46<para>If you will create an <filename>.inputrc</filename> in
47<filename>/etc/skel</filename> using the command below, change the
48command's output to <filename>/etc/skel/.inputrc</filename> and be
49sure to check/set permissions afterward. Then you can just copy that
50file to <filename>/etc/inputrc</filename> and the home directory
51of any user already existing in the system, including root, that needs
52a private version of the file. Be sure to use the <option>-p</option>
53parameter of <command>cp</command> to maintain permissions and be sure to
54change owner and group appropriately.</para>
55
56<screen><userinput><command>cat &gt; /etc/inputrc &lt;&lt; "EOF"</command>
57# Begin /etc/inputrc
58
59# Make sure we don't output everything on the 1 line
60set horizontal-scroll-mode Off
61
62# Enable 8bit input
63set meta-flag On
64set input-meta On
65
66# Turns off 8th bit stripping
67set convert-meta Off
68
69# Keep the 8th bit for display
70set output-meta On
71
72# none, visible or audible
73set bell-style none
74
75# All of the following map the escape sequence of the
76# value contained inside the 1st argument to the
77# readline specific functions
78
79"\eOd": backward-word
80"\eOc": forward-word
81
82# for linux console
83"\e[1~": beginning-of-line
84"\e[4~": end-of-line
85"\e[5~": beginning-of-history
86"\e[6~": end-of-history
87"\e[3~": delete-char
88"\e[2~": quoted-insert
89
90# for xterm
91"\eOH": beginning-of-line
92"\eOF": end-of-line
93
94# End /etc/inputrc
95<command>EOF</command></userinput></screen>
96
97</sect1>
Note: See TracBrowser for help on using the repository browser.