At 2019-05-19T16:43:41+0200, Henning wrote:
> I don't like to have dozens of key bindings I never use. Currently I
> am issuing lots of lots of bind -r/-u commands to get rid of the
> default bindings. This slows down console startup unnecessarily.
> 
> I would really like to have an inputrc command like $removeall or
> something like bind -r/-u all.
> Or is there something undocumented for this purpose?
> 
> And yes, I know, it's soooooooooooooooooo dangerous.

Not dangerous--pointless.  You might as well just close standard input.

Remember that "self-insert" is a binding.

If you removed all bindings, no keystrokes would do _anything_.

You'll also need a binding for "accept-line", or you have no way to tell
readline you're done entering a command.

I think what you're asking for is some switch to just rebind all keys to
"self-insert", except for C-j and C-m, which would go to "accept-line".
This, I can imagine maybe having some utility.  I can't speak for Chet,
however.

Regards,
Branden

Attachment: signature.asc
Description: PGP signature

Reply via email to