1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 11:22:09 +02:00
tldr/pages/common/bindkey.md
Vitor Henrique 1ba7fb9460
pages*: add missing mnemonics (#12151)
* pages*: add missing mnemonics

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-19 19:43:42 +05:30

349 B

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 [s]equence:

bindkey -s '^o' 'cd ..\n'

  • [l]ist keymaps:

bindkey -l

  • View the hotkey in a key[M]ap:

bindkey -M main