我正在从 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,并按照这里的 repo/instructions 安装了 prezto:https ://github.com/hackreactor-labs/prezto 。
我做了一些谷歌搜索并尝试了一些解决方案,但都没有奏效,包括将我的 .gitconfig 文件中的一行从“autocrlf = true”更改为“autocrlf = false”。
我发现了一些关于字符行间距没有被正确处理的事情(让我感到困惑),但没有完全理解它,解决的方向也很模糊。
再次感谢您的帮助!