source: archive/inputrc.xml@ 90cb5d6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 90cb5d6 was 23839a7, checked in by Igor Živković <igor@…>, 10 years ago

archive inputrc page, it is in LFS now

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

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