New answers tagged readline
You can use the bind builtin command with -x option. A variable may be set with bind "set var val" bind -x keyseq:command cause command to be executed when keyseq is entered So, bind -x 'keyseq:bind "set var val"' works fine. Example: bind 'set expand-tilde off' bind -v | grep expand-tilde # outputs set expand-tilde off bind -x '"\C-x\C-t": bind "set ...
It seems inputrc supports # comments, but only on their own line and not trailing. Having # comment after each statement caused it to fail to apply. set show-all-if-ambiguous on set completion-ignore-case on Seems to work as expected.
Top 50 recent answers are included