I would like to use heredoc in a
zsh alias, for example:
alias runthing="cd ~; date << HERE date HERE"
However every time I run this alias, the shell acts as if I have not terminated the heredoc, and displays this:
➜ ~ runthing heredoc>
Entering here at the
heredoc> line finishes the command, although I do not want to do this, thus the alias. I am using oh-my-zsh if that is making any difference.
How do I use heredoc correctly in a zsh alias?