Just follow these simple step and it will work fine
Run this command or go to the directory nano ~/.zshrc
Then Add these two lines
autoload -Uz compinit compinit