Since I use both bash and zsh, I'd like to learn the zle's emacs keymap (since this is the default in bash). My problem is that macOS's option key does not work with the meta shortcuts (like M-. for yanking the last argument from the last command). Is there a way to set the option key to meta?

  • This isn't up to zsh, it's up to the terminal emulator. E.g. Terminal, iTerm2, … Nov 22, 2022 at 17:53

1 Answer 1


I've found that the Meta character is changed to Esc and since I use the Caps Lock as my Ctrl+Esc keys, I've mapped the real Ctrl key to the Esc. It's one key away, but that's ok.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .