【发布时间】:2023-02-03 20:43:04
【问题描述】:
如题。看来我的.zshrc最后一行有问题。无论最后一行是什么,我都会收到 .zshrc:119: parse error near \n'` 错误。我正在使用 MAc M1 Max。用谷歌搜索了一些线程,但都没有用。
Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
DEFAULT_USER="amber-moe"
if brew list | grep coreutils > /dev/null ; then PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH" alias ls='ls -F --show-control-chars --color=auto' eval `gdircolors -b $HOME/.dir_colors` fi
# The next line updates PATH for the Google Cloud SDK.
#if [ -f '/Users/xiaolang/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/xiaolang/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/xiaolang/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/xiaolang/google-cloud-sdk/completion.zsh.inc'; fi
这是我.zshrc的最后一行。谢谢你帮助我。
【问题讨论】: