我正在从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”。
我发现有关字符行间距未正确处理的内容(对我来说很困惑),但我并没有完全理解它,并且解决方向不够清晰。
非常感谢您的帮助!