[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: run_readline_command to avoid the bother of binding something
From: |
積丹尼 Dan Jacobson |
Subject: |
Re: run_readline_command to avoid the bother of binding something |
Date: |
Mon, 19 Sep 2016 08:31:27 +0800 |
OK then please add
dump-functions
Print all of the functions and their key bindings to the read-
line output stream. If a numeric argument is supplied, the out-
put is formatted in such a way that it can be made part of an
inputrc file.
"See also bind -P, -p"
dump-variables
Print all of the settable readline variables and their values to
the readline output stream. If a numeric argument is supplied,
the output is formatted in such a way that it can be made part
of an inputrc file.
"See also bind -V, -v"
dump-macros
Print all of the readline key sequences bound to macros and the
strings they output. If a numeric argument is supplied, the
output is formatted in such a way that it can be made part of an
inputrc file.
"See also bind -M, -m"
Also at
Readline Variables
Readline has variables that can be used to further customize its behav-
ior. A variable may be set in the inputrc file with a statement of the
form
set variable-name value
Except where noted, readline variables can take the values On or Off
(without regard to case). Unrecognized variable names are ignored.
When a variable value is read, empty or null values, "on" (case-insen-
do remind the user (please yet) again that he can check their current value with
bind -v, -V.
And, as
http://unix.stackexchange.com/questions/27471/setting-readline-variables-in-the-shell
mentions also remind him,
'You can make bash execute readline commands through the bind builtin:
bind "set var value"'
i.e., inputrc is not the only choice.
Thanks.