[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add example of bind readline-command-line
From: |
Greg Wooledge |
Subject: |
Re: Add example of bind readline-command-line |
Date: |
Tue, 12 Dec 2023 16:34:34 -0500 |
On Tue, Dec 12, 2023 at 10:06:49PM +0800, Dan Jacobson wrote:
> bash man page says
> -v Display readline variable names and values in such a way
> that they can be re-read.
> Perhaps add an example of rereading via the bind command:
The man page also includes
bind [-m keymap] [-lpsvPSVX]
bind [-m keymap] [-q function] [-u function] [-r keyseq]
bind [-m keymap] -f filename
bind [-m keymap] -x keyseq:shell-command
bind [-m keymap] keyseq:function-name
bind [-m keymap] keyseq:readline-command
Given that the output of "bind -v" is several lines of text, I would try
the "bind -f filename" command first, to re-read such output.