Name
bindkey
Synopsis
bindkey [options
] [key
] [command
]
Display all key bindings, or bind a key to an editor command.
Options
-
-a
List standard and alternate key bindings.
-
-b
key
Expect key to be one of the following: a control character (in hat notation, e.g.,
^B
, or C notation, e.g.,C-B
); a metacharacter (e.g., M-B); a function key (e.g., F-string); or an extended prefix key (e.g., X-B).-
-c
command
Interpret command as a shell command, not as an editor command.
-
-d
key
Bind key to its original binding.
-
-e
Bind to standard Emacs bindings.
-
-k
key
Expect key to refer to an arrow (left, right, up, or down).
-
-l
List and describe all editor commands.
-
-r
key
Completely unbind key.
-
-s
Interpret command as a literal string and treat as terminal input.
-
-u
Print usage message.
-
-v
Bind to standard vi bindings.
-
--
End option processing. The following item is treated as a key, even if it looks like an option.
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.