"string not in pwd" error on Mac
longbow007 opened this issue · comments
段晓剑 commented
I installed autojump using homebrew, and added this line in my .zshrc file at line 112
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
Every time I start terminal, it says:
/Users/myusername/.zshrc:cd:112: string not in pwd: -
I checked if the autojump.sh file exists:
ls -l /opt/homebrew/etc/profile.d/
the output:
then I checked autojump.zsh:
All the files exists, they are just symlinked to other locations.
So where does the "/Users/myusername/.zshrc:cd:112: string not in pwd: -" error come from?