Search notes:

readline initialization file

The initialization file is a list of commands that bind a keyname or key sequence to a macro, a readline function name or a shell command.
Comments start with #.

Conditional constructs

Conditional constructs are possible with $if, $else and $endif.
$if mode=vi
    bind …
$endif

$if term=xvrt
    …
$endif

$if Bash
$endif


Re-reading an init file

An initialization file can be re-read with bind -f init-file.

$INPUTRC

With $INPUTRC, a non default location/path of an init file can be specified.

Including other files

An initialization file can include other files with $include /path/to/file.

Some settings

8-bit input/output

set meta-flag    on
set convert-meta off
set input-meta   on
set output-meta  on

Filename completion/expansion

set completion-ignore-case on
set show-all-if-ambiguous  on

Expand homedir name

set expand-tilde on

Append a slash (/) to directory names

set mark-directories           on
set mark-symlinked-directories on

Match all files

set match-hidden-files on

Magic space

Typing a space performs a history expansion
Space: magic-space

TODO

# the following line is actually
# equivalent to "\C-?": delete-char
"\e[3~": delete-char

# VT
"\e[1~": beginning-of-line
"\e[4~": end-of-line

# kvt
"\e[H": beginning-of-line
"\e[F": end-of-line

# rxvt and konsole (i.e. the KDE-app...)
"\e[7~": beginning-of-line
"\e[8~": end-of-line

# VT220
"\eOH": beginning-of-line
"\eOF": end-of-line

See also

/etc/inputrc ~/.inputrc

Index