"complete:13: command not found: compdef" message when launching Terminal
I am new to using Terminal but I have noticed when I do open it I am always greeted with an error message (see attached). I have no idea how or when exactly it started showing up but I noticed it fairly recently. It also is there on new Terminal tabs and I can get rid of it by using the "clear" command. Is there a way to get rid of the message or is there something I accidentally broke?
MacBook Pro 15″, macOS 12.2