blob: 5f32bfd53aaa8f32231ef7cf362a2c7d4f627a47 (
plain)
1
2
3
4
5
6
|
<h1 class="section">Readline Init File</h1> <p>Although the Readline library comes with a set of Emacs-like keybindings installed by default, it is possible to use a different set of keybindings. Any user can customize programs that use Readline by putting commands in an <em>inputrc</em> file, conventionally in their home directory. The name of this file is taken from the value of the shell variable <code>INPUTRC</code>. If that variable is unset, the default is <samp>~/.inputrc</samp>. If that file does not exist or cannot be read, the ultimate default is <samp>/etc/inputrc</samp>. The <code>bind</code> builtin command can also be used to set Readline keybindings and variables. See <a href="bash-builtins">Bash Builtin Commands</a>. </p> <p>When a program which uses the Readline library starts up, the init file is read, and the key bindings are set. </p> <p>In addition, the <code>C-x C-r</code> command re-reads this init file, thus incorporating any changes that you might have made to it. </p> <ul class="section-toc"> <li><a href="readline-init-file-syntax" accesskey="1">Readline Init File Syntax</a></li> <li><a href="conditional-init-constructs" accesskey="2">Conditional Init Constructs</a></li> <li><a href="sample-init-file" accesskey="3">Sample Init File</a></li> </ul><div class="_attribution">
<p class="_attribution-p">
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.<br>Licensed under the GNU Free Documentation License.<br>
<a href="https://www.gnu.org/software/bash/manual/html_node/Readline-Init-File.html" class="_attribution-link">https://www.gnu.org/software/bash/manual/html_node/Readline-Init-File.html</a>
</p>
</div>
|