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