I’m tweaking with GNU Readline’s key bindings in Bash. Specifically, I wish to achieve the following mapping effect:
Control' ==>
'I'
ControlShift' ==>
"I"
Control` ==>
`I`
Control[ ==>
[I]
ControlShift[ ==>
{I}
where I
indicates the cursor position after expansion.
I have tried the following configuration in my ~/.inputrc
. However, only the <C-`>
mapping works as expected:
$include /etc/inputrc
$if mode=emacs
"C-'": "''C-b"
"C-`": "``C-b"
"C-"": """C-b"
"C-{": "{}C-b"
"C-[": "[]C-b"
$endif
I’m wondering what is wrong with my configuration and how to make these mappings correctly (if possible)?