source: postlfs/config/inputrc.xml@ a08fde9

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 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a08fde9 was 5cd0959d, checked in by Archaic <archaic@…>, 20 years ago

Resetting keywords

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

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