This is related to Zsh: Open a new tab in the same directory.
I have installed oh-my-zsh recently and it certainly kicks.
I have some custom variables, like $WORKSPACE which I use to get around easily.
And when I am inside one of those paths the prompt gets set to the name of the variable, for example
~WORKSPACE/project $ .
This breaks the "Open tab in the same directory feature" which I love so much. And whats puzzling me most here is that this does not happen for the ZSH variable. So cd $ZSH gives a prompt like
~/.oh-my-zsh $. And as far as I know they are bot set the same way in my .zshrc