Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Sample-Init-File.html
blobc79a8812f790b3e0d9e0aa4cec6426fe7d0790d7
1 <html lang="en">
2 <head>
3 <title>Debugging with GDB</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="Debugging with GDB">
6 <meta name="generator" content="makeinfo 4.3">
7 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
8 </head>
9 <body>
10 <div class="node">
11 <p>
12 Node:<a name="Sample%20Init%20File">Sample Init File</a>,
13 Previous:<a rel="previous" accesskey="p" href="Conditional-Init-Constructs.html#Conditional%20Init%20Constructs">Conditional Init Constructs</a>,
14 Up:<a rel="up" accesskey="u" href="Readline-Init-File.html#Readline%20Init%20File">Readline Init File</a>
15 <hr><br>
16 </div>
18 <h4 class="subsection">Sample Init File</h4>
20 <p>Here is an example of an <var>inputrc</var> file. This illustrates key
21 binding, variable assignment, and conditional syntax.
23 <pre class="example">
24 # This file controls the behaviour of line input editing for
25 # programs that use the Gnu Readline library. Existing programs
26 # include FTP, Bash, and Gdb.
28 # You can re-read the inputrc file with C-x C-r.
29 # Lines beginning with '#' are comments.
31 # First, include any systemwide bindings and variable assignments from
32 # /etc/Inputrc
33 $include /etc/Inputrc
36 # Set various bindings for emacs mode.
38 set editing-mode emacs
40 $if mode=emacs
42 Meta-Control-h: backward-kill-word Text after the function name is ignored
45 # Arrow keys in keypad mode
47 #"\M-OD": backward-char
48 #"\M-OC": forward-char
49 #"\M-OA": previous-history
50 #"\M-OB": next-history
52 # Arrow keys in ANSI mode
54 "\M-[D": backward-char
55 "\M-[C": forward-char
56 "\M-[A": previous-history
57 "\M-[B": next-history
59 # Arrow keys in 8 bit keypad mode
61 #"\M-\C-OD": backward-char
62 #"\M-\C-OC": forward-char
63 #"\M-\C-OA": previous-history
64 #"\M-\C-OB": next-history
66 # Arrow keys in 8 bit ANSI mode
68 #"\M-\C-[D": backward-char
69 #"\M-\C-[C": forward-char
70 #"\M-\C-[A": previous-history
71 #"\M-\C-[B": next-history
73 C-q: quoted-insert
75 $endif
77 # An old-style binding. This happens to be the default.
78 TAB: complete
80 # Macros that are convenient for shell interaction
81 $if Bash
82 # edit the path
83 "\C-xp": "PATH=${PATH}\e\C-e\C-a\ef\C-f"
84 # prepare to type a quoted word -- insert open and close double quotes
85 # and move to just after the open quote
86 "\C-x\"": "\"\"\C-b"
87 # insert a backslash (testing backslash escapes in sequences and macros)
88 "\C-x\\": "\\"
89 # Quote the current or previous word
90 "\C-xq": "\eb\"\ef\""
91 # Add a binding to refresh the line, which is unbound
92 "\C-xr": redraw-current-line
93 # Edit variable on current line.
94 "\M-\C-v": "\C-a\C-k$\C-y\M-\C-e\C-a\C-y="
95 $endif
97 # use a visible bell if one is available
98 set bell-style visible
100 # don't strip characters to 7 bits when reading
101 set input-meta on
103 # allow iso-latin1 characters to be inserted rather than converted to
104 # prefix-meta sequences
105 set convert-meta off
107 # display characters with the eighth bit set directly rather than
108 # as meta-prefixed characters
109 set output-meta on
111 # if there are more than 150 possible completions for a word, ask the
112 # user if he wants to see all of them
113 set completion-query-items 150
115 # For FTP
116 $if Ftp
117 "\C-xg": "get \M-?"
118 "\C-xt": "put \M-?"
119 "\M-.": yank-last-arg
120 $endif
121 </pre>
123 </body></html>