oh-my-zsh から prezto に切り替えています。そして、端末ウィンドウを開くたびに次のエラーが発生しました。
/Users/jasenlew/.zshenv:7: command not found: ^M
/Users/jasenlew/.zshenv:13: parse error near `\n'
/Users/jasenlew/.zprofile:7: command not found: ^M
/Users/jasenlew/.zprofile:11: command not found: ^M
/Users/jasenlew/.zprofile:80: parse error near `\n'
/Users/jasenlew/.zshrc:7: command not found: ^M
/Users/jasenlew/.zshrc:15: parse error near `\n'
/Users/jasenlew/.zlogin:7: command not found: ^M
/Users/jasenlew/.zlogin:15: command not found: ^M
/Users/jasenlew/.zlogin:9: command not found: ^M
/Users/jasenlew/.zlogin:12: command not found: then^M
/Users/jasenlew/.zlogin:16: command not found: ^M
/Users/jasenlew/.zlogin:21: parse error near `\n'
/Users/jasenlew/.zlogin:zcompile:13: can't open file: /Users/jasenlew/.zcompdump^M^M
/Users/jasenlew/.zlogin:14: command not found: fi^M
私はすでに oh-my-zsh を削除しており、 https ://github.com/hackreactor-labs/prezto のリポジトリ/手順に従って prezto をインストールしています。
私はいくつかのグーグルを行い、いくつかの解決策を試しましたが、.gitconfig ファイルの行を「autocrlf = true」から「autocrlf = false」に変更するなど、うまくいきませんでした。
文字の行間隔が正しく処理されていないことに (混乱していましたが) 見つけましたが、完全には理解できず、解決方法が曖昧でした。
助けてくれてありがとう!