cod*_*per 0 macos terminal zsh oh-my-zsh macos-big-sur
昨天我已将我的 MacOS 从 catalina 更新为 big sur。\n每当我打开终端时,都会出现以下错误。
\nLast login: Sat Nov 14 17:54:05 on ttys000\n/Users/amolbhure/.zshrc:6: no such file or directory: source~/.bash_profile\n/Users/amolbhure/.zshrc:104: compinit: function definition file not found\n/Users/amolbhure/.oh-my-zsh/oh-my-zsh.sh:78: compinit: function definition file not found\n/Users/amolbhure/.oh-my-zsh/lib/completion.zsh:75: bashcompinit: function definition file not found\nNo version set for command direnv\nConsider adding one of the following versions in your config file at /Users/amolbhure/.tool-versions\ndirenv 2.23.1\n/Users/amolbhure/.zshrc:113: compinit: function definition file not found\n/Users/amolbhure/.zshrc:117: compinit: function definition file not found\n/Users/amolbhure/.zshrc:121: compinit: function definition file not found\nNo version set for command direnv\nConsider adding one of the following versions in your config file at /Users/amolbhure/.tool-versions\ndirenv 2.23.1\n/Users/amolbhure/.zshrc:126: compinit: function definition file not found\n/Users/amolbhure/.zshrc:130: compinit: function definition file not found\n/Users/amolbhure/.zshrc:134: compinit: function definition file not found\n/Users/amolbhure/.zshrc:138: compinit: function definition file not found\n/Users/amolbhure/.zshrc:142: compinit: function definition file not found\n/Users/amolbhure/.zshrc:146: compinit: function definition file not found\n/Users/amolbhure/.zshrc:150: compinit: function definition file not found\n/Users/amolbhure/.zshrc:154: compinit: function definition file not found\n/Users/amolbhure/.zshrc:158: compinit: function definition file not found\n/Users/amolbhure/.zshrc:162: compinit: function definition file not found\n/Users/amolbhure/.zshrc:166: compinit: function definition file not found\n/Users/amolbhure/.zshrc:170: compinit: function definition file not found\n/Users/amolbhure/.zshrc:174: compinit: function definition file not found\n/Users/amolbhure/.zshrc:178: compinit: function definition file not found\n/Users/amolbhure/.zshrc:182: compinit: function definition file not found\n/Users/amolbhure/.zshrc:186: compinit: function definition file not found\n/Users/amolbhure/.zshrc:190: compinit: function definition file not found\n/Users/amolbhure/.zshrc:194: compinit: function definition file not found\n/Users/amolbhure/.zshrc:198: compinit: function definition file not found\n/Users/amolbhure/.zshrc:202: compinit: function definition file not found\n/Users/amolbhure/.zshrc:206: compinit: function definition file not found\n/Users/amolbhure/.zshrc:210: compinit: function definition file not found\n/Users/amolbhure/.zshrc:214: compinit: function definition file not found\n/Users/amolbhure/.zshrc:218: compinit: function definition file not found\n/Users/amolbhure/.zshrc:222: compinit: function definition file not found\n/Users/amolbhure/.zshrc:226: compinit: function definition file not found\n/Users/amolbhure/.zshrc:230: compinit: function definition file not found\n/Users/amolbhure/.zshrc:234: compinit: function definition file not found\n/Users/amolbhure/.zshrc:238: compinit: function definition file not found\n\xe2\x9e\x9c ~ \nRun Code Online (Sandbox Code Playgroud)\n我无法输入任何内容。\n如果我从计算机输入任何关键字,它会抛出以下错误,并且一直这样。太令人沮丧了。
\n-zsh:1: url-quote-magic: function definition file not found\nRun Code Online (Sandbox Code Playgroud)\n
小智 6
我不太清楚其根本原因,但我通过卸载并重新安装 oh-my-zsh 解决了这个问题。
最棘手的部分是让 shell 工作。我最终需要/bin/bash在我的终端中加载。首选项 > 常规 > “外壳打开方式:” > 命令/bin/bash
一旦我可以运行 bash,我就删除了 oh-my-zsh
rm -rf ~/.oh-my-zsh
之后我可以立即重新安装它:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
备份您的.zshrc第一个以防万一!
| 归档时间: |
|
| 查看次数: |
4540 次 |
| 最近记录: |