I was trying to transfer my terminal setup (iTerm2, zsh, oh-my-zsh, omz themes) from an old MacBook to a new one.
.zshrc real file is in Dropbox shared between the two laptops, and in each laptop there's a
~/.zshrc symlink to the Dropbox one.
With this setup, I encountered this error in the new laptop:
someuser@Someusers-MacBook-Pro ~ % source ~/.zshrc /Users/someuser/.zshrc:source:78: no such file or directory: ~/.oh-my-zsh/oh-my-zsh.sh /Users/someuser/.zshrc:source:112: no such file or directory: /Users/someuser/.rcsource someuser@Someusers-MacBook-Pro ~ % ls ~/.oh-my-zsh/oh-my-zsh.sh /Users/someuser/.oh-my-zsh/oh-my-zsh.sh someuser@Someusers-MacBook-Pro ~ % cat ~/.zshrc | grep oh-my-zsh # Path to your oh-my-zsh installation. export ZSH="~/.oh-my-zsh" # load a random theme each time oh-my-zsh is loaded, in which case, source $ZSH/oh-my-zsh.sh
As you can see, the output doesn't make any sense. It complains about not being able to find
~/.oh-my-zsh/oh-my-zsh.sh yet when I do
ls on that path, it shows that it exists.