Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Two Comments' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Two Comments
Authored by: googoo on Aug 28, '06 09:42:46AM
Thanks for the useful hint. I have two comments. (Perhaps I am missing something.) First, I noticed that Terminal.app maps the forward-delete key to \004 by default. If I add the following line to my .inputrc file, I get the expected forward-delete behavior.

"\004": forward-backward-delete-char

Just do not press the forward-delete key with no text in the command line. It logs you out (just like pressing ctrl-d).

The second comment is that I get error messages when I enter source ~/.inputrc because bash tries to associate thekeymappings with commands. Is there another way to reapply the .inputrc file?

-Mark



[ Reply to This | # ]
Two Comments
Authored by: mietek on Aug 28, '06 03:17:35PM

Yes, just close the Terminal window and open a new one.



[ Reply to This | # ]
Two Comments
Authored by: googoo on Aug 29, '06 05:36:52AM

What I meant was how do you re-read the .initrc file without exiting the shell?

-Mark



[ Reply to This | # ]
Correction
Authored by: googoo on Aug 29, '06 05:41:41AM
I am sorry, but I should not try to type before having coffee. I meant, how do you re-read the .inputrc file without exiting the shell?

-Mark



[ Reply to This | # ]
Solution
Authored by: googoo on Aug 29, '06 05:50:34AM
I found the answer by reading the bash man page (imagine that?). Use the following command.

bind -f ~/.inputrc

You can substitute another filename to read keymaps from that file.

-Mark



[ Reply to This | # ]
thanks plus a (worse) solution
Authored by: vike on Aug 04, '09 05:30:32PM
ive read that manual a lot but you know, its oh so long and, many subjects are discussed at multiple occasions.
so thanks for that one i had missed.
it will probably come to replace my previous inputrc key-binding:
  control-r: re-read-init-file

[ Reply to This | # ]