Je pense qu'il n'y a pas besoin de bricoler, en fait. Cf man readline :
[...]
INITIALIZATION FILE
Readline is customized by putting commands in an initialization file
(the inputrc file). The name of this file is taken from the value of the
INPUTRC environment vari‐ able. If that variable is unset, the default
is ~/.inputrc. If that file does not exist or cannot be read, the ultimate
default is /etc/inputrc. When a program which uses the readline library
starts up, the init file is read, and the key bindings and variables are
set. There are only a few basic constructs allowed in the readline init
file. Blank lines are ignored. Lines beginning with a # are comments.
Lines beginning with a $ indicate conditional constructs. Other lines denote
key bindings and variable settings. Each program using this library may add
its own commands and bindings.
[...]
J'ai l'impression que tu peux faire plein de trucs...
--
Frédéric