My command line says `complete:13: command not found: compdef ` When I use a terminal like iTerm or Hyper, right as I boot it up, the first message I get is:

complete:13: command not found: compdef


I don't know what this is from, and how to get rid of it. This message does not show up on the default terminal app though.

I am using zsh.
This is the same issue I got on my mac OS. I am using zsh shell.



Compdef is basically a function used by zsh for load the auto-completions. The completion system needs to be activated. If you’re using something like oh-my-zsh then this is already taken care of, otherwise you’ll need to add the following to your ~/.zshrc

autoload -Uz compinit
compinit


Completion functions can be registered manually by using the compdef function directly like this compdef  . But compinit need to be autoloaded in context before using compdef.