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:
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`
|
Reference in New Issue
Block a user