command not found: compdef
What did you expect to happen? I added enhancd via antidote:
# in my plugins.txt
b4b4r07/enhancd
What actually happened? I am getting the following error when opening a new zsh shell:
Output
/Users/xx/Library/Caches/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-b4b4r07-SLASH-enhancd/enhancd.plugin.zsh:28: command not found: compdef
Additional context
I initialized the completion system in my .zshrc based on the suggestion:
autoload -Uz compinit && compinit
But I need to call compinit after the plugins.sh was sourced, since I also load plugins (e.g. docker or kubectl) which include their own auto completion definitions.
Calling compinit before sourcing enhancd and again after sourceing all other plugins works, but slows down my zsh shell start.
Any suggestion on how to solve this? The issue should be reproducable with my dotfiles.
Thank you for raising the issue. I'll take a look this until this weekend
Just wanted to say that I also see the same behavior on darwin, on linux it works without issues, seems to be only a problem with darwin systems