Load compinit before trying to compdef anything