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