문제

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/

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top