Bash – Briefly jump to matching parentheses in Bash

bashinputrcreadline

In vim there is an option called showmatch. When you type a closing parenthesis in insert mode, this jumps the cursor to the matching opening parenthesis (at the same nesting level), then back again. This is very useful with languages like prolog and lisp, and is often present in their REPLs. Does Bash have a similar feature? I wonder if this might be part of readline, because the SWI-prolog interpreter does it, and as far as I know, also uses readline. If it is part on readline, which options do I need to set in my .inputrc?

Best Answer

The question https://stackoverflow.com/questions/47358440/blink-matching-paren-not-working-in-readline-prompt lists as part of the question the readline setting

set blink-matching-paren on

which I have tried, and produces the result I was expecting.

Related Question