This error happens in my ~/.zshrc when configuring iTerm2.
.zshrc:117: parse error near `\n'
The following is the last few lines of my ~/.zshrc.
111 source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
112 #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
113
114 # to customize the prompt, run `p10k configure` or edit ~/.p10k.zsh.
115 [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
116 POWERLEVEL9K_DISABLE_CONFIGURATION=true
When I turn the line 112 into comment, the error then disappear.
How can I fix this without turning it into comment?