I think I might have discovered a bug in the (D) expansion of named directories, and I'm not sure how to sort this out.
$ echo "${(D)PWD}"
~CODE_AUDIT_HELPERS
$ var=$PWD/install.zsh
$ ls $var
/Users/zachriggle/.zprezto/modules/code-audit-helpers/install.zsh
$ echo "${(D)var}"
~var
Any ideas on what's happening here? This is on zsh 5.8.1
Zach Riggle