Name
bind
Synopsis
bind [-mmap] [options] bind [-mmap] [-qfunction] [-rsequence] [-ufunction] bind [-mmap] -ffilebind [-mmap] -xsequence:commandbind [-mmap]sequence:functionbindreadline-command
Manage the readline library. Nonoption arguments have the same form as in an .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, and vi-insert. vi is the same as vi-command, and emacs is the same emacs-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.