当我打开终端时,会自动显示以下内容:
Last login: Thu Dec 8 10:54:34 on ttys001
/Users/user1/.zprofile:14: unmatched "
/Users/user1/.zprofile:14: unmatched "
/Users/user1/.zshrc:.:18: no such file or directory: /opt/homebrew/opt/asdf/asdf.sh
/Users/user1/.zshrc:.:20: no such file or directory: /opt/homebrew/opt/asdf/asdf.sh
/Users/user1/.zshrc:.:22: no such file or directory: /opt/homebrew/opt/asdf/asdf.sh
/Users/user1/.zshrc:.:24: no such file or directory: /opt/homebrew/opt/asdf/asdf.sh
/Users/user1/.zshrc:.:26: no such file or directory: /opt/homebrew/opt/asdf/asdf.sh
/Users/user1/.zshrc:.:28: no such file or directory: /opt/homebrew/opt/asdf/asdf.sh
/Users/user1/.zshrc:.:30: no such file or directory: /opt/homebrew/opt/asdf/libexec/asdf.sh
/Users/user1/.zshrc:.:32: no such file or directory: /opt/homebrew/opt/asdf/asdf.sh
/Users/user1/.zshrc:.:34: no such file or directory: /opt/homebrew/opt/asdf/asdf.sh
我怎样才能阻止这种情况发生?我尝试过以下命令:
rm -rf ~/.asdf/
这是我的 .zprofile ,但我在这里找不到任何丢失的引号。
# Setting PATH for Python 3.10
# The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.10/bin:${PATH}"
export PATH
eval "$(/opt/homebrew/bin/brew shellenv)"
eval "$(/opt/homebrew/bin/brew shellenv)"
# Setting PATH for Python 3.5
# The orginal version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH
eval "$(/opt/homebrew/bin/brew shellenv"
~
~
~
~
~
~
~
~
~
~
"~/.zprofile" 13L, 454B