Zend certified PHP/Magento developer

How to get `hash -d` shortcut path of a full path in ZSH

For example, I set this in ZSH,

hash -d x=/a/b/c

then I can get the path /a/b/c/d by using ~x/d.

Reversely, how can I get the string ~x/d from path /a/b/c/d?