您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

187 行
6.7KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Free Software" and "Free Software Needs
  8. Free Documentation", with the Front-Cover Texts being "A GNU Manual,"
  9. and with the Back-Cover Texts as in (a) below.
  10. (a) The FSF's Back-Cover Text is: "You are free to copy and modify
  11. this GNU Manual. Buying copies from GNU Press supports the FSF in
  12. developing GNU and promoting software freedom." -->
  13. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. <title>Sample Init File (Debugging with GDB)</title>
  17. <meta name="description" content="Sample Init File (Debugging with GDB)">
  18. <meta name="keywords" content="Sample Init File (Debugging with GDB)">
  19. <meta name="resource-type" content="document">
  20. <meta name="distribution" content="global">
  21. <meta name="Generator" content="makeinfo">
  22. <link href="index.html#Top" rel="start" title="Top">
  23. <link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
  24. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  25. <link href="Readline-Init-File.html#Readline-Init-File" rel="up" title="Readline Init File">
  26. <link href="Bindable-Readline-Commands.html#Bindable-Readline-Commands" rel="next" title="Bindable Readline Commands">
  27. <link href="Conditional-Init-Constructs.html#Conditional-Init-Constructs" rel="prev" title="Conditional Init Constructs">
  28. <style type="text/css">
  29. <!--
  30. a.summary-letter {text-decoration: none}
  31. blockquote.indentedblock {margin-right: 0em}
  32. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  33. blockquote.smallquotation {font-size: smaller}
  34. div.display {margin-left: 3.2em}
  35. div.example {margin-left: 3.2em}
  36. div.lisp {margin-left: 3.2em}
  37. div.smalldisplay {margin-left: 3.2em}
  38. div.smallexample {margin-left: 3.2em}
  39. div.smalllisp {margin-left: 3.2em}
  40. kbd {font-style: oblique}
  41. pre.display {font-family: inherit}
  42. pre.format {font-family: inherit}
  43. pre.menu-comment {font-family: serif}
  44. pre.menu-preformatted {font-family: serif}
  45. pre.smalldisplay {font-family: inherit; font-size: smaller}
  46. pre.smallexample {font-size: smaller}
  47. pre.smallformat {font-family: inherit; font-size: smaller}
  48. pre.smalllisp {font-size: smaller}
  49. span.nolinebreak {white-space: nowrap}
  50. span.roman {font-family: initial; font-weight: normal}
  51. span.sansserif {font-family: sans-serif; font-weight: normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en">
  57. <a name="Sample-Init-File"></a>
  58. <div class="header">
  59. <p>
  60. Previous: <a href="Conditional-Init-Constructs.html#Conditional-Init-Constructs" accesskey="p" rel="prev">Conditional Init Constructs</a>, Up: <a href="Readline-Init-File.html#Readline-Init-File" accesskey="u" rel="up">Readline Init File</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
  61. </div>
  62. <hr>
  63. <a name="Sample-Init-File-1"></a>
  64. <h4 class="subsection">32.3.3 Sample Init File</h4>
  65. <p>Here is an example of an <var>inputrc</var> file. This illustrates key
  66. binding, variable assignment, and conditional syntax.
  67. </p>
  68. <div class="example">
  69. <pre class="example"># This file controls the behaviour of line input editing for
  70. # programs that use the GNU Readline library. Existing
  71. # programs include FTP, Bash, and GDB.
  72. #
  73. # You can re-read the inputrc file with C-x C-r.
  74. # Lines beginning with '#' are comments.
  75. #
  76. # First, include any system-wide bindings and variable
  77. # assignments from /etc/Inputrc
  78. $include /etc/Inputrc
  79. #
  80. # Set various bindings for emacs mode.
  81. set editing-mode emacs
  82. $if mode=emacs
  83. Meta-Control-h: backward-kill-word Text after the function name is ignored
  84. #
  85. # Arrow keys in keypad mode
  86. #
  87. #&quot;\M-OD&quot;: backward-char
  88. #&quot;\M-OC&quot;: forward-char
  89. #&quot;\M-OA&quot;: previous-history
  90. #&quot;\M-OB&quot;: next-history
  91. #
  92. # Arrow keys in ANSI mode
  93. #
  94. &quot;\M-[D&quot;: backward-char
  95. &quot;\M-[C&quot;: forward-char
  96. &quot;\M-[A&quot;: previous-history
  97. &quot;\M-[B&quot;: next-history
  98. #
  99. # Arrow keys in 8 bit keypad mode
  100. #
  101. #&quot;\M-\C-OD&quot;: backward-char
  102. #&quot;\M-\C-OC&quot;: forward-char
  103. #&quot;\M-\C-OA&quot;: previous-history
  104. #&quot;\M-\C-OB&quot;: next-history
  105. #
  106. # Arrow keys in 8 bit ANSI mode
  107. #
  108. #&quot;\M-\C-[D&quot;: backward-char
  109. #&quot;\M-\C-[C&quot;: forward-char
  110. #&quot;\M-\C-[A&quot;: previous-history
  111. #&quot;\M-\C-[B&quot;: next-history
  112. C-q: quoted-insert
  113. $endif
  114. # An old-style binding. This happens to be the default.
  115. TAB: complete
  116. # Macros that are convenient for shell interaction
  117. $if Bash
  118. # edit the path
  119. &quot;\C-xp&quot;: &quot;PATH=${PATH}\e\C-e\C-a\ef\C-f&quot;
  120. # prepare to type a quoted word --
  121. # insert open and close double quotes
  122. # and move to just after the open quote
  123. &quot;\C-x\&quot;&quot;: &quot;\&quot;\&quot;\C-b&quot;
  124. # insert a backslash (testing backslash escapes
  125. # in sequences and macros)
  126. &quot;\C-x\\&quot;: &quot;\\&quot;
  127. # Quote the current or previous word
  128. &quot;\C-xq&quot;: &quot;\eb\&quot;\ef\&quot;&quot;
  129. # Add a binding to refresh the line, which is unbound
  130. &quot;\C-xr&quot;: redraw-current-line
  131. # Edit variable on current line.
  132. &quot;\M-\C-v&quot;: &quot;\C-a\C-k$\C-y\M-\C-e\C-a\C-y=&quot;
  133. $endif
  134. # use a visible bell if one is available
  135. set bell-style visible
  136. # don't strip characters to 7 bits when reading
  137. set input-meta on
  138. # allow iso-latin1 characters to be inserted rather
  139. # than converted to prefix-meta sequences
  140. set convert-meta off
  141. # display characters with the eighth bit set directly
  142. # rather than as meta-prefixed characters
  143. set output-meta on
  144. # if there are more than 150 possible completions for
  145. # a word, ask the user if he wants to see all of them
  146. set completion-query-items 150
  147. # For FTP
  148. $if Ftp
  149. &quot;\C-xg&quot;: &quot;get \M-?&quot;
  150. &quot;\C-xt&quot;: &quot;put \M-?&quot;
  151. &quot;\M-.&quot;: yank-last-arg
  152. $endif
  153. </pre></div>
  154. <hr>
  155. <div class="header">
  156. <p>
  157. Previous: <a href="Conditional-Init-Constructs.html#Conditional-Init-Constructs" accesskey="p" rel="prev">Conditional Init Constructs</a>, Up: <a href="Readline-Init-File.html#Readline-Init-File" accesskey="u" rel="up">Readline Init File</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
  158. </div>
  159. </body>
  160. </html>