📄 inputrc.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content= "application/xhtml+xml; charset=iso-8859-1" /> <title> 11.9. Creating the /etc/inputrc File </title> <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="stylesheet" href="../stylesheets/lfs-print.css" type= "text/css" media="print" /> </head> <body id="lfs" class="CLFS-SVN-20060417-MIPS"> <div class="navheader"> <div class="headertitles"> <h4> Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS </h4> <h3> Chapter 11. Setting Up System Bootscripts </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="sysklogd.html" title= "Configuring the sysklogd script">Prev</a> <p> Configuring the sysklogd script </p> </li> <li class="next"> <a accesskey="n" href="profile.html" title= "The Bash Shell Startup Files">Next</a> <p> The Bash Shell Startup Files </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 11. Setting Up System Bootscripts">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a> </li> </ul> </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="sect1"> 11.9. Creating the /etc/inputrc File </h1> </div> <p> The <tt class="filename">/etc/inputrc</tt> file deals with mapping the keyboard for specific situations. This file is the start-up file used by Readline — the input-related library — used by Bash and most other shells. </p> <p> Most people do not need user-specific keyboard mappings so the command below creates a global <tt class="filename">/etc/inputrc</tt> used by everyone who logs in. If you later decide you need to override the defaults on a per-user basis, you can create a <tt class="filename">.inputrc</tt> file in the user's home directory with the modified mappings. </p> <p> For more information on how to edit the <tt class= "filename">inputrc</tt> file, see <span><strong class="command">info bash</strong></span> under the <span class="emphasis"><em>Readline Init File</em></span> section. <span><strong class="command">info readline</strong></span> is also a good source of information. </p> <p> Below is a generic global <tt class="filename">inputrc</tt> along with comments to explain what the various options do. Note that comments cannot be on the same line as commands. Create the file using the following command: </p> <pre class="userinput"><kbd class="command">cat > /etc/inputrc << "EOF"<tt class="literal"># Begin /etc/inputrc# Modified by Chris Lynn <roryo@roryo.dynup.net># Allow the command prompt to wrap to the next lineset horizontal-scroll-mode Off# Enable 8bit inputset meta-flag Onset input-meta On# Turns off 8th bit strippingset convert-meta Off# Keep the 8th bit for displayset output-meta On# none, visible or audibleset bell-style none# All of the following map the escape sequence of the# value contained inside the 1st argument to the# readline specific functions"\eOd": backward-word"\eOc": forward-word# for linux console"\e[1~": beginning-of-line"\e[4~": end-of-line"\e[5~": beginning-of-history"\e[6~": end-of-history"\e[3~": delete-char"\e[2~": quoted-insert# for xterm"\eOH": beginning-of-line"\eOF": end-of-line# for Konsole"\e[H": beginning-of-line"\e[F": end-of-line# End /etc/inputrc</tt>EOF</kbd></pre> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="sysklogd.html" title= "Configuring the sysklogd script">Prev</a> <p> Configuring the sysklogd script </p> </li> <li class="next"> <a accesskey="n" href="profile.html" title= "The Bash Shell Startup Files">Next</a> <p> The Bash Shell Startup Files </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 11. Setting Up System Bootscripts">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a>. </li> </ul> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -