by refp · 3mo ago · 0 comments
---
You are very much correct that `Alt-.` with modifiers can do more than what has been described, it is however important to note that the behavior of `Alt-<key>` changes heavily both between zsh and bash, but also between `vi-mode` and `emacs-mode`.
For instance, zsh will switch to `vi-mode` depending on env variables such as `$EDITOR`, making `Alt-<key>` unavailable in that regard.
---
It's also worth noting that `ctrl-alt-e` is _not_ a zsh default, though it is a fair point that it could have been added in the below linked section:
https://refp.se/articles/your-shell-and-the-lazy-exclamation...
For what it's worth, I had troubles finding a proper scope for the article contents — and with that the lines became a bit blurry in terms of what to include, and what not to include.
---
I really appreciate constructive comments like yours, and hope it together with the article can help future shell ninjas!
What you can do with what is always hard to answer given that all roads lead to Rome, though some roads have more turns than others.