commands.sh

bindkey

all

Add hotkeys to Z shell. See also: `zle`.

More info →

Examples (8)

List all existing hotkeys

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

List all hotkeys in a key[M]ap

bindkey -M main

Enable [v]i mode

Enable [e]macs mode (default mode)

Check which mode is active (vi or emacs)

bindkey -lL main | grep -Eo 'viins|emacs'
made by @shridhargupta | data from tldr-pages