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 a .inputrc file.
Options
-ffileRead key bindings from file.
-lList the names of all the readline functions.
-mmapUse map as the keymap. Available keymaps are:
emacs,emacs-standard,emacs-meta,emacs-ctlx,vi,vi-move,vi-command, andvi-insert.viis the same asvi-command, andemacsis the same asemacs-standard.-pPrint the current readline bindings such that they can be reread from a .inputrc file.
-PPrint the current readline bindings.
-qfunctionQuery which keys invoke the readline function function.
-rsequenceRemove the binding for key sequence sequence.
-sPrint the current readline key sequence and macro bindings such that they can be reread from a .inputrc file.
-SPrint the current readline key sequence and macro bindings.
-ufunctionUnbind all keys that invoke the readline function function.
-vPrint the current readline variables such that they can be reread from a .inputrc file.
-VPrint the current readline variables.
-xsequence:commandExecute the shell command command whenever sequence is entered.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access