mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
25 lines
402 B
Markdown
25 lines
402 B
Markdown
![]() |
# bind
|
||
|
|
||
|
> Bash builtin to manage bash hotkeys and variables.
|
||
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Bash-Builtins>.
|
||
|
|
||
|
- List all bound commands and their hotkeys:
|
||
|
|
||
|
`bind {{-p|-P}}`
|
||
|
|
||
|
- Query a command for its hotkey:
|
||
|
|
||
|
`bind -q {{command}}`
|
||
|
|
||
|
- Bind a key:
|
||
|
|
||
|
`bind -x '"{{key_sequence}}":{{command}}'`
|
||
|
|
||
|
- List user defined bindings:
|
||
|
|
||
|
`bind -X`
|
||
|
|
||
|
- Display help:
|
||
|
|
||
|
`help bind`
|