diff options
Diffstat (limited to 'chapter07/inputrc.xml')
-rw-r--r-- | chapter07/inputrc.xml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/chapter07/inputrc.xml b/chapter07/inputrc.xml index f8327beb9..977e9755f 100644 --- a/chapter07/inputrc.xml +++ b/chapter07/inputrc.xml @@ -7,7 +7,9 @@ <title>Creating the /etc/inputrc file</title> <?dbhtml filename="inputrc.html"?> -<para><filename>Inputrc</filename> deals with the mapping of the keyboard for +<indexterm zone="ch-scripts-inputrc"><primary sortas="e-/etc/inputrc">/etc/inputrc</primary></indexterm> + +<para><filename>/etc/inputrc</filename> deals with the mapping of the keyboard for certain situations. This file is the start-up file used by <application>readline</application> - the input related library used by <application>Bash</application> and most other shells.</para> @@ -26,7 +28,7 @@ file. A later page sets up <application>Bash</application> to use <filename>/etc/profile</filename> is read (usually at login). If you want your system to use both, or don't want <emphasis>global</emphasis> keyboard handling, it is a good idea to place a default -<filename>.inputrc</filename> into the <filename>/etc/skel</filename> +<filename>.inputrc</filename> into the <filename class="directory">/etc/skel</filename> directory for use with new users.</para> <para> @@ -36,17 +38,17 @@ can <emphasis>not</emphasis> be on the same line as commands. </para> <para>If you will create an <filename>.inputrc</filename> in -<filename>/etc/skel</filename> using the command below, change the +<filename class="directory">/etc/skel</filename> using the command below, change the command's output to <filename>/etc/skel/.inputrc</filename> and be sure to check/set permissions afterward. Then you can just copy that file to <filename>/etc/inputrc</filename> and the home directory of any user already existing in the system, including root, that needs -a private version of the file. Be sure to use the <option>-p</option> parameter +a private version of the file. Be sure to use the <parameter>-p</parameter> parameter of <command>cp</command> to maintain permissions and be sure to change owner and group appropriately. </para> -<screen><userinput>cat > /etc/inputrc << "EOF"</userinput> +<screen><userinput>cat > /etc/inputrc << "EOF" # Begin /etc/inputrc # Make sure we don't output everything on the 1 line @@ -89,6 +91,6 @@ set bell-style none "\e[F": end-of-line # End /etc/inputrc -<userinput>EOF</userinput></screen> +EOF</userinput></screen> </sect1> |