Name
bind
Synopsis
bind [-mmap
] [options
] bind [-mmap
] [-qfunction
] [-rsequence
] [-ufunction
] bind [-mmap
] -ffile
bind [-mmap
] -xsequence
:command
bind [-mmap
]sequence
:function
bindreadline-command
Bash only. Manage the readline library. Non-option arguments have the same form as in a .inputrc file.
Options
-
-f
file
Read key bindings from file.
-
-l
List the names of all the readline functions.
-
-m
map
Use map as the keymap. Available keymaps are:
emacs
,emacs-standard
,emacs-meta
,emacs-ctlx
,vi
,vi-move
,vi-command
, andvi-insert
.vi
is the same asvi-command
andemacs
is the sameemacs-standard
.-
-p
Print the current readline bindings such that they can be reread from a .inputrc file.
-
-P
Print the current readline bindings.
-
-q
function
Query which keys invoke the readline function function.
-
-r
sequence
Remove the binding for key sequence sequence.
-
-s
Print the current readline key sequence and macro bindings such that they can be reread from a .inputrc file.
-
-S
Print the current readline key sequence and macro bindings.
-
-u
function
Unbind all keys that invoke the readline function function.
-
-v
Print the current readline variables such that they can be reread from a .inputrc file.
-
-V
Print the current readline variables.
-
-x
sequence
:
command
Execute the shell command command whenever sequence is entered.
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.