Whenever you open the Terminal app, it reads your ~/.zshrc
file and runs any commands in it. To troubleshoot where the error is coming from, I would open the file, then see if the source of the error is obvious. It looks like it might be on the first line?
Try commenting out that line by adding a #
at the beginning of the line, then quit and restart Terminal and see if the issue goes away.
If you don't know how to edit your ~/.zshrc
, read my guide that goes over various ways to open and edit hidden files on a Mac.
If the first line wasn't the culprit, then comment out half of your ~/.zshrc
and see if the issue goes away. Then keep commenting out more chunks until you narrow it down.