bindkey

Add keybindings to Z-Shell.

TLDR

Bind a hotkey to a specific command

$ bindkey "[^k]" [kill-line]
copy


Bind a hotkey to a specific key sequence
$ bindkey -s '^o' 'cd ..\n'
copy


View keymaps
$ bindkey -l
copy


View the hotkey in a keymap
$ bindkey -M main
copy

Copied to clipboard