I have several set commands in .inputrc. Previously I've loaded them via source .inputrc, but some programs are unhappy with set commands in .profile. What is the correct way of sourcing it?
-
Does this help? unix.stackexchange.com/questions/231726/…Sida Zhou– Sida Zhou2021-02-03 03:39:08 +00:00Commented Feb 3, 2021 at 3:39
1 Answer
You don't.
See the "INITIALIZATION FILE" section of the readline manual (man readline):
Readline is customized by putting commands in an initialization file (the inputrc file). The name of this file is taken from the value of the INPUTRC environment variable. If that variable is unset, the default is ~/.inputrc. If that file does not exist or cannot be read, the ultimate default is /etc/inputrc. When a program which uses the readline library starts up, the init file is read, and the key bindings and variables are set.
-
1Also
Ctrl-x Ctrl-ris bound by default tore-read-init-fileso it's not necessary to open new session of the program.Jakub Jindra– Jakub Jindra2019-03-29 13:01:07 +00:00Commented Mar 29, 2019 at 13:01