shell终端 bind

bind

1
2
3
4
5
6
7
8
9
10
[check@centos7 ~]$ help bind
Set Readline key bindings and variables.

Bind a key sequence to a Readline function or a macro, or set a
Readline variable. The non-option argument syntax is equivalent to
that found in ~/.inputrc, but must be passed as a single argument:
e.g., bind '"\C-x\C-r": re-read-init-file'.
[check@centos7 ~]$ bind -x '"\C-t":pwd'
/home/check
[check@centos7 ~]$