zsh

zle key bindings

This is valid for the default, emacs mode (bindkey -e).

Movements

Key

Action

⌃b

Move one letter backwards

⌃f

Move one letter forwards

⌥b

Move one word backwards

⌥f

Move one word forwards

⌃p

Move to previous line

⌃n

Move to next line

⌃a

Move to the beginning of the line

⌃e

Move to the end of the line

Editing

Key

Action

⌃u

Delete entire line

\e d

Delete the word ahead of the cursor (escape, followed by d)

⌃/

Undo last action

⌃r

Search backwards through command history

Last updated

Was this helpful?