This question explains how to reload .inputrc using C-x C-r. But how would one reload it using commands in a bash script?


Use the bind command:

bind -f ~/.inputrc

See help bind for more information:

-f  filename       Read key bindings from FILENAME.
| improve this answer | |
  • 2
    This doesn't unbind removed entries. – Sparhawk Oct 18 '15 at 2:52
  • 1
    I am a bit surprised to see that the -f option accepts only a filename, not a file, which means, for instance, that bind -f <(cat ~/.inputrc) has no effect. I run into this while trying to pass a single set line to bind -f. – Enrico Maria De Angelis Oct 13 '19 at 9:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.