Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-11 00:16:59 +00:00
parent 08e6a26f5e
commit b0756d672e
16 changed files with 70 additions and 12 deletions

29
tldr/bind Normal file
View File

@@ -0,0 +1,29 @@
---
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#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`