mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
492 B
Plaintext
30 lines
492 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# bind
|
|
|
|
> Bash builtin to manage bash hotkeys and variables.
|
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-bind>.
|
|
|
|
- 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`
|