Changeset 5ba3d1d for chapter07/inputrc.xml
- Timestamp:
- 08/08/2004 02:11:27 AM (20 years ago)
- Branches:
- 6.0
- Children:
- 1dc34de7
- Parents:
- ef13657
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/inputrc.xml
ref13657 r5ba3d1d 10 10 <indexterm zone="ch-scripts-inputrc"><primary sortas="e-/etc/inputrc">/etc/inputrc</primary></indexterm> 11 11 12 <para><filename>/etc/inputrc</filename> deals with the mapping of the keyboard for 13 certain situations. This file is the start-up file used by 14 <application>readline</application> - the input related library used by 15 <application>Bash</application> and most other shells.</para> 12 <para>The <filename>/etc/inputrc</filename> file deals with mapping 13 the keyboard for specific situations. This file is the start-up file 14 used by <application>readline</application> -- the input-related 15 library used by <application>Bash</application> and most other 16 shells.</para> 16 17 17 <para>For more information see <command>info bash</command> -- <emphasis 18 role="strong">Node: Readline Init</emphasis> file as well as 19 <command>info readline</command>. There is a lot that can be done with this 20 one rc file.</para> 18 <para>For more information, see the bash info page, section 19 <emphasis>Readline Init File</emphasis>. The readline info page is 20 also a good source of information.</para> 21 21 22 22 <para>Global values are set in <filename>/etc/inputrc</filename>. 23 23 Personal user values are set in <filename>~/.inputrc</filename>. The 24 24 <filename>~/.inputrc</filename> file will override the global settings 25 file. A later page sets up <application>Bash</application>to use25 file. A later page sets up Bash to use 26 26 <filename>/etc/inputrc</filename> if there is no 27 27 <filename>.inputrc</filename> for a user when 28 <filename>/etc/profile</filename> is read (usually at login). If you29 want your system to use both, or don't want <emphasis>global</emphasis> 30 keyboard handling, it is a good idea to place a default 31 <filename >.inputrc</filename> into the <filename class="directory">/etc/skel</filename>32 directory for usewith new users.</para>28 <filename>/etc/profile</filename> is read (usually at login). To make 29 the system use both, or to negate global keyboard handling, it is a 30 good idea to place a default <filename>.inputrc</filename> into the 31 <filename class="directory">/etc/skel</filename> directory for use 32 with new users.</para> 33 33 34 <para> 35 Below is a base <filename>/etc/inputrc</filename> along with 36 comments to explain what the various options do. Note that comments 37 can <emphasis>not</emphasis> be on the same line as commands. 38 </para> 34 <para>Below is a base <filename>/etc/inputrc</filename>, along with 35 comments to explain what the various options do. Note that comments 36 cannot be on the same line as commands.</para> 39 37 40 <para>If you will create an <filename>.inputrc</filename> in 41 <filename class="directory">/etc/skel</filename> using the command below, change the 42 command's output to <filename>/etc/skel/.inputrc</filename> and be 43 sure to check/set permissions afterward. Then you can just copy that 44 file to <filename>/etc/inputrc</filename> and the home directory 45 of any user already existing in the system, including root, that needs 46 a private version of the file. Be sure to use the <parameter>-p</parameter> parameter 47 of <command>cp</command> to maintain permissions and be sure to change owner and group 48 appropriately. 49 </para> 38 <para>To create the <filename>.inputrc</filename> in <filename 39 class="directory">/etc/skel</filename> using the command below, change 40 the command's output to <filename 41 class="directory">/etc/skel/.inputrc</filename> and be sure to 42 check/set permissions afterward. Then copy that file to 43 <filename>/etc/inputrc</filename> and the home directory of any user 44 already existing on the system, including <emphasis>root</emphasis>, 45 that needs a private version of the file. Be certain to use the 46 <parameter>-p</parameter> parameter of <command>cp</command> to 47 maintain permissions and be sure to change owner and group 48 appropriately.</para> 50 49 51 50 <screen><userinput>cat > /etc/inputrc << "EOF" 52 51 # Begin /etc/inputrc 52 # Modified by Chris Lynn <roryo@roryo.dynup.net> 53 53 54 54 # Make sure we don't output everything on the 1 line … … 95 95 96 96 </sect1> 97
Note:
See TracChangeset
for help on using the changeset viewer.