source: postlfs/config/inputrc.xml@ 766bbe40

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 766bbe40 was 766bbe40, checked in by Larry Lawrence <larry@…>, 21 years ago

tagged some writeups

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

  • Property mode set to 100644
File size: 2.2 KB
Line 
1<sect1 id="postlfs-config-inputrc">
2<?dbhtml filename="inputrc.html" dir="postlfs"?>
3<title>/etc/inputrc</title>
4
5<para><filename>inputrc</filename> deals with the mapping of the keyboard for
6certain situations. This file is the start-up file used by
7<application>readline</application> - the input related library used by
8<application>Bash</application> and most other shells.</para>
9
10<para>For more information see <command>info bash</command> -- <emphasis
11role="strong">Node: Readline Init</emphasis> file as well as
12<command>info readline</command>. There is a lot that can be done with this
13one rc file.</para>
14
15<para>The following is a base <filename>/etc/inputrc</filename> along with
16comments to explain what the various options do.</para>
17
18<para>Please note that comments can <emphasis>not</emphasis> be on the
19same line as commands in <filename>inputrc</filename>.</para>
20
21<screen><userinput><command>cat &gt; /etc/inputrc &lt;&lt; "EOF"</command>
22# Begin /etc/inputrc
23
24# Make sure we don't output everything on the 1 line
25set horizontal-scroll-mode Off
26
27# Enable 8bit input
28set meta-flag On
29set input-meta On
30
31# Turns off 8th bit stripping
32set convert-meta Off
33
34# Keep the 8th bit for display
35set output-meta On
36
37# none, visible or audible
38set bell-style none
39
40# All of the following map the escape sequence of the
41# value contained inside the 1st argument to the
42# readline specific functions
43
44"\eOd": backward-word
45"\eOc": forward-word
46
47# for linux console
48"\e[1~": beginning-of-line
49"\e[4~": end-of-line
50"\e[5~": beginning-of-history
51"\e[6~": end-of-history
52"\e[3~": delete-char
53"\e[2~": quoted-insert
54
55# for xterm
56"\eOH": beginning-of-line
57"\eOF": end-of-line
58
59# End /etc/inputrc
60<command>EOF</command></userinput></screen>
61
62<para>Global values are set in <filename>/etc/inputrc</filename>.
63Personal user values as are set in <filename>~/.inputrc</filename>. The
64<filename>~/.inputrc</filename> file will override the global settings
65file. The previous page sets up <application>Bash</application> to use
66<filename>/etc/inputrc</filename> by default. If you want your system
67to use both, it might be a good idea to place a default
68<filename>.inputrc</filename> into the <filename>/etc/skel</filename>
69directory for use with new users.</para>
70
71</sect1>
Note: See TracBrowser for help on using the repository browser.