1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/bindkey.md
Liu233w b9919a01fb
bindkey: add page (#8089)
Co-authored-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
2022-05-22 22:19:41 +05:30

20 lines
343 B
Markdown

# 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`