mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 08:02:08 +02:00
bindkey: add page (#8089)
Co-authored-by: Muhammad Falak R Wani <falakreyaz@gmail.com> Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
This commit is contained in:
parent
17886acec8
commit
b9919a01fb
1 changed files with 20 additions and 0 deletions
20
pages/common/bindkey.md
Normal file
20
pages/common/bindkey.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# bindkey
|
||||
|
||||
> Add keybindings to Z-Shell.
|
||||
> More information: <https://zsh.sourceforge.io/Guide/zshguide04.html>.
|
||||
|
||||
- Bind a hotkey to a specific command:
|
||||
|
||||
`bindkey "{{^k}}" {{kill-line}}`
|
||||
|
||||
- Bind a hotkey to a specific key sequence:
|
||||
|
||||
`bindkey -s '^o' 'cd ..\n'`
|
||||
|
||||
- View keymaps:
|
||||
|
||||
`bindkey -l`
|
||||
|
||||
- View the hotkey in a keymap:
|
||||
|
||||
`bindkey -M main`
|
Loading…
Add table
Reference in a new issue