source: archive/inputrc.xml@ 54bd123

11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 54bd123 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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