Date command with zsh
One workaround is to wrap the code around echo $(...)
. It produces the right output and was acceptable for me. Your original command would look like:
echo $(date +%d.%m.%y-%H:%M:%S)
I had the same issue, and could solve it by commenting out line 12 of .oh-my-zsh/lib/termsupport.zsh as suggested at https://github.com/robbyrussell/oh-my-zsh/issues/521