How to get rid of stuck terminal error

errorterminal

I don't exactly remember what I did last night, but ever since I get this message everytime I launch terminal. Not that it stops me from doing anything, it's just really annoying. Any help regarding this will be greatly appreciated. Thanks.

Terminal error message

Best Answer

Check your profile files (~/.profile, ~/.bash_profile, etc) to see what is being run when you launch your shell and remove references to zsh. To see exactly what is being executed when you launch your shell, execute your shell with the -x option. Also make sure your Terminal shell is set correctly in Preferences.