Bash – Setting readline variables in the shell

bashreadline

I read in the man page, that you set readline parameters on an off or to a value by using

set var value

Is this the same as the set builtin, and how do you set the variables once inputrc has already been read and the shell is running?

Best Answer

The set command in the readline manual is the one in readline's configuration file, ~/.inputrc. Although bash is the most famous user of the readline library, the library is generic and can be used by other programs; the syntax of .inputrc is unrelated to bash.

You can make bash execute readline commands through the bind builtin:

bind "set var value"

Also, you can make bash reread ~/.inputrc with bind -f ~/.inputrc.

Related Question