In an earlier question, specific to bash, I asked How can I expand a relative path at the command line, with tab completion?
I liked @Mikel's answer that mentioned using Ctrl+Alt+e to expand all variables and I used that a lot.
Since then I've switched to
zsh and while I can type
$PWD and press Tab to expand the current directory's path, if I type something like
$PWD/.profile and press Tab it does not get expanded.
I have read up on similar questions and have seen answers on expanding aliases as well as how to expand variables by typing them and pressing Tab but nothing that was the same as pressing Ctrl+Alt+e in
Is there some way to allow an escape sequence such as Ctrl+Alt+e to expand all variables in the command line that is being typed in