1

I have updated my ~/.inputrc file to test out show-all-if-unmodified, and now want to try it out. How do I use it without logging off and back in?

2
  • bind -f ~/.inputrc
    – mosvy
    Aug 9 '19 at 13:55
  • Hm. I accidentally did . ~/.inputrc before asking this question, and now readline seems to have stopped working. Weird. Thanks for your answer though, please make it an answer so it can be accepted. Aug 9 '19 at 14:02
4

You can use readline's re-read-init-file command, which is typically accessed theough C-x C-r (that's a Control-X, followed by a separate Control-R), if you use the "emacs" keybindings, which are the default. Note that this works in other readline users that are not bash (for example, the Python interpreter in interactive mode.)

If you use "vi" mode, this command has no keybinding by default, so you might consider adding a keybinding for it, if you consider it useful.

Otherwise, in bash, you can use [the bind built-in] to reconfigure readline. You can re-read your "inputrc" using the following command in bash:

$ bind -f ~/.inputrc

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.