I'm using zsh 5.0.2 (x86_64-apple-darwin12.3.0)
on the latest MacOSX. If it makes any difference, I have also enabled oh-my-zsh
.
The shell seems to be missing the .zshrc
file when I want to source it.
The result of the execution of the following commands should expose my problem clearly. (~ »
is my prompt).
The file exists
~ » ls -l .zshrc
-rw-r--r-- 1 user staff 1882 May 16 10:43 .zshrc
~ » [[ -r .zshrc ]] && echo "Exists"
Exists
The file isn't read by "."
~ » . .zshrc
.: no such file or directory: .zshrc
I don't know what causes this behavior, especially that this works
~ » . "$(pwd)"/.zshrc
Success!
My question is:
Why won't . .zshrc
work?