If you get this error
complete:13: command not found: compdef
you probably need to first run
autoload bashcompinit
bashcompinit
autoload -Uz compinit
compinit
If you get this error
complete:13: command not found: compdef
you probably need to first run
autoload bashcompinit
bashcompinit
autoload -Uz compinit
compinit