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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/sh...', 1737453144, '18.188.15.159', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/readline/initialization-file(130): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78