Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 4
    Alt . on Zsh on Mac is typing 🤔
    – Andre Pena
    Commented Jun 30, 2019 at 11:50
  • 3
    Esc . works, even though it only works for the last one. You can't keep typing to go back in time. Maybe it would be worth updating the answer. Thank you very much.
    – Andre Pena
    Commented Jul 2, 2019 at 8:15
  • You could run bindkey -L in zsh to see all shortcuts binded, maybe it it will help pinpoint the issue, or even find other useful commands. In my case for example: the binding Alt . is defined as bindkey "^[." insert-last-word. Ctrl L (to clear screen) -> bindkey "^L" clear-screen. Alt+Ctrl h -> bindkey "^[^H" backward-kill-word (same as Ctrl w to remove last word)
    – Madacol
    Commented Jul 2, 2019 at 14:06
  • @Madacol I can also see on bind keys the mentioned copy-earlier-word as bindkey "^[^_" copy-prev-word Commented May 23, 2020 at 15:16
  • Some of these shortcuts depend on terminal used. E.g. in xfce4-terminal Alt-2 switches to the second tab.
    – jarno
    Commented Oct 7, 2023 at 8:32