source: BOOK/bootscripts/common/inputrc.xml@ 505e095

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 505e095 was d018b81, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Several fixes for PDF look.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-scripts-inputrc">
9 <?dbhtml filename="inputrc.html"?>
10
11 <title>Creating the /etc/inputrc File</title>
12
13 <indexterm zone="ch-scripts-inputrc">
14 <primary sortas="e-/etc/inputrc">/etc/inputrc</primary>
15 </indexterm>
16
17 <para>The <filename>/etc/inputrc</filename> file deals with mapping
18 the keyboard for specific situations. This file is the start-up file
19 used by Readline &mdash; the input-related library &mdash; used by Bash
20 and most other shells.</para>
21
22 <para>Most people do not need user-specific keyboard mappings so
23 the command below creates a global <filename>/etc/inputrc</filename>
24 used by everyone who logs in. If you later decide you need to override
25 the defaults on a per-user basis, you can create a
26 <filename>.inputrc</filename> file in the user's home directory with
27 the modified mappings.</para>
28
29 <para>For more information on how to edit the <filename>inputrc</filename>
30 file, see <command>info bash</command> under the <emphasis>Readline Init
31 File</emphasis> section. <command>info readline</command> is also a good
32 source of information.</para>
33
34 <para>Below is a generic global <filename>inputrc</filename> along
35 with comments to explain what the various options do. Note that
36 comments cannot be on the same line as commands. Create the file
37 using the following command:</para>
38
39<screen><?dbfo keep-together="auto"?><userinput>cat &gt; /etc/inputrc &lt;&lt; "EOF"
40<literal># Begin /etc/inputrc
41# Modified by Chris Lynn &lt;roryo@roryo.dynup.net&gt;
42
43# Allow the command prompt to wrap to the next line
44set horizontal-scroll-mode Off
45
46# Enable 8bit input
47set meta-flag On
48set input-meta On
49
50# Turns off 8th bit stripping
51set convert-meta Off
52
53# Keep the 8th bit for display
54set output-meta On
55
56# none, visible or audible
57set bell-style none
58
59# All of the following map the escape sequence of the
60# value contained inside the 1st argument to the
61# readline specific functions
62
63"\eOd": backward-word
64"\eOc": forward-word
65
66# for linux console
67"\e[1~": beginning-of-line
68"\e[4~": end-of-line
69"\e[5~": beginning-of-history
70"\e[6~": end-of-history
71"\e[3~": delete-char
72"\e[2~": quoted-insert
73
74# for xterm
75"\eOH": beginning-of-line
76"\eOF": end-of-line
77
78# for Konsole
79"\e[H": beginning-of-line
80"\e[F": end-of-line
81
82# End /etc/inputrc</literal>
83EOF</userinput></screen>
84
85</sect1>
Note: See TracBrowser for help on using the repository browser.