source: postlfs/config/inputrc.xml@ 0a216f08

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 v1_0 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 0a216f08 was 0a216f08, checked in by Mark Hymers <markh@…>, 22 years ago

fix inputrc comment bug and typo

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

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[f45b1953]1<sect1 id="postlfs-config-inputrc">
2<?dbhtml filename="inputrc.html" dir="postlfs"?>
3<title>/etc/inputrc</title>
4
5<para>There are a number of configuration files that are common to all
6linux system. Inputrc deals with the mapping of the keybord in ceratin
7situations. This file is the start-up file used by readline - the input
8related library used by bash and most other shells. By changing this file
9you can change how certain keys act in different situations. The following
10is a simple inputrc along with comments to explain what the various
11options do.</para>
12
13<para>The following file can be used as
14<filename>/etc/inputrc</filename> or <filename>~/.inputrc</filename> as
15appropriate. See below for more details on which to use.</para>
16
[0a216f08]17<para>Please note that comments can <emphasis>not</emphasis> be on the
18same line as commands in <filename>inputrc</filename>.</para>
19
[f45b1953]20<para><screen># Make sure we dont output everything on the 1 line
21set horizontal-scroll-mode Off
22
[0a216f08]23# Enable 8bit input
24set meta-flag On
25set input-meta On
26
27# Turns off 8th bit stripping
28set convert-meta Off
29
30# Keep the 8th bit for display
31set output-meta On
32
33# none, visible or audible
34set bell-style none
[f45b1953]35
36# All of the following map the escape sequence of the
37# value contained inside the 1st argument to the
38# readline specific functions
39
40"\eOd": backward-word
41"\eOc": forward-word
42
43# for linux console
44"\e[1~": beginning-of-line
45"\e[4~": end-of-line
46"\e[5~": beginning-of-history
47"\e[6~": end-of-history
48"\e[3~": delete-char
49"\e[2~": quoted-insert
50
51# for xterm
52"\eOH": beginning-of-line
53"\eOF": end-of-line</screen></para>
54
55<para>Please see man 3 readline for more infomation. There is a lot that
56can be done with this single rc file.</para>
57
58<para>Note that the readline library checks ~/.inputrc, by default. If
59you want to use <filename>/etc/inputrc</filename> as your global
60inputrc (i.e. for all users), you will need to add the line
61<userinput>export INPUTRC=/etc/inputrc</userinput> to your
62.bash_profile, .bashrc or .profile file as appropriate.</para>
63
[0a216f08]64<para>If you want to use per-user <userinput>.inputrc</userinput> files,
65you can create one and drop it into <filename>/etc/skel</filename> for use
[f45b1953]66when creating new users.</para>
67
68</sect1>
Note: See TracBrowser for help on using the repository browser.