owzim
owzim

Reputation: 925

Variable names in prompt instead of path

How can I prevent my zsh prompt from showing the variable name a path is assigned to instead of the path itself?

foo="/some/path"
cd "$foo"

shows $ ~foo/ in my prompt instead $ /some/path/

Upvotes: 1

Views: 490

Answers (1)

simont
simont

Reputation: 72547

From the comments:

you're seeing Named Directories. Check if AUTO_NAME_DIRS is set (setopt | grep AUTO_NAME_DIRS) - to disable this functionality, turn it off.

Upvotes: 4

Related Questions