How do I reload .inputrc?
Background
I have heard that the readline module is reading ~/.inputrc
and that is how it changes the behaviour of keystrokes under programs such as bash.
Question
How can I reload this after editing to see the changed behaviour without restarting my terminal program?
By default, C-x C-r
is bound to re-read-init-file
.
See the Bash Reference Manual for explanation.
You can also reload new entries from command line using bind -f ~/.inputrc
. That will load the entries in .inputrc. Note that it just does a load, not a "reload" - so it doesn't reset any lines you happen to have removed from the .inputrc.
To quickly test from a clean slate, just run bash
then work inside that new nested shell (or start a new terminal).