Why is zsh reading new lines (^M) in ~/.zshrc as commands?
===


I'm not sure what I did to mess up my zsh configuration but every time I try to run zsh I get the following message followed by the default theme:

    /Users/danny/.zshrc:3: command not found: ^M
    /Users/danny/.zshrc:9: command not found: ^M
    /Users/danny/.zshrc:13: command not found: ^M
    /Users/danny/.zshrc:16: command not found: ^M
    /Users/danny/.zshrc:19: command not found: ^M
    /Users/danny/.zshrc:22: command not found: ^M
    /Users/danny/.zshrc:25: command not found: ^M
    /Users/danny/.zshrc:28: command not found: ^M
    /Users/danny/.zshrc:32: command not found: ^M
    /Users/danny/.zshrc:33: command not found: ^M
    /Users/danny/.zshrc:source:34: no such file or directory: /Users/danny/.oh-my-zsh^M/oh-my-zsh.sh^M
    /Users/danny/.zshrc:35: command not found: ^M
    danny%


I've tried removing .zshrc and .oh-my-zsh and reinstalling oh-my-zsh via brew but I continue to have the same issue. How can I resolve this?