bindkey: add page (#8089)

Co-authored-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
htop
Liu233w 2022-05-23 02:49:41 +10:00 committed by GitHub
parent 17886acec8
commit b9919a01fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

20
pages/common/bindkey.md Normal file
View 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`