I have assigned a directory to a variable in my .zshrc file like so:
export DOTFILES=$HOME/.dotfiles
Now my zsh prompt reads ~DOTFILES
when I am in the .dotfiles
directory. I did some research (in this thread: Variable names in prompt instead of path) and found that zsh has an AUTO_NAME_DIRS
option which does this very thing.
I tried unsetopt AUTO_NAME_DIRS
but my zsh prompt still shows the variable name instead of the path. I ran the unsetopt
command and found that autonamedirs
is indeed in the list of unset options. I also ran setopt
to make sure it wasn't in the list of set options, and it is not.
Any ideas on how to fix this?