Chapter 8: Command Line Editing

112

$if Bash

# Quote the current or previous word

"\C-xq": "\eb\"\ef\""

$endif

$endif

This command, as seen in the previous example, terminates an $if command.

$else

Commands in this branch of the $if directive are executed if the test fails.

$include

This directive takes a single filename as an argument and reads commands and bindings from that file. For example, the following directive reads from

/etc/inputrc:

$include /etc/inputrc

8.3.3 Sample Init File

Here is an example of an inputrc file. This illustrates key binding, variable assignment, and conditional syntax.