/Users/ello/.zshrc:source:3: no such file or directory:
/Users/ello/Projects/config/env.sh
Ello-MacBook-Pro% /Users/ello/.zshrc:source
zsh: no such file or directory: /Users/ello/.zshrc:source
Ello-MacBook-Pro% /Users/ello/.zshrc
zsh: permission denied: /Users/ello/.zshrc
Ello-MacBook-Pro%
Run Code Online (Sandbox Code Playgroud)
在我愚蠢地编辑.zshrc文件之后,这种情况一直在发生.在尝试重置shell之后,现在保留在文件中的所有内容都是:
# Created by newuser for 5.3.1
# Add env.sh
Run Code Online (Sandbox Code Playgroud)
如何撤消所有内容,重新安装zsh或重新制作.zshrc文件?
这是在macOS Sierra上.
编辑:我重新安装了oh-my-zsh,导致此消息:
ain() {
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
if which tput >/dev/null 2>&1; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; …Run Code Online (Sandbox Code Playgroud)