Menu

Toshimaru's Blog

Enable option + arrow(⌥←, ⌥→) keys in Zsh

When you use option + arrow keys in your macOS teminal(such as ⌥ + ← ⌥ + →), you can’t move cursor.

$ [D [C # option + arrow key doesn't work!

To fix this, put this in your ~/.zshrc.

bindkey "[D" backward-word
bindkey "[C" forward-word

See also

Load more