
While this will get rid of the warning/confirmation, the warning is there for a reason and it shouldn't happen normally. Thanks to for suggesting to use compinit -u to skip the security checks for completion scripts

zshrc file, don't forget to restart the shell for ZSH to pick up the new config (alternatively, you can execute the line in your current session, that'll enable autocompletion for that one session) the zsh compinit: insecure directories warning zshrc should be enough: autoload -Uz compinit & compinitĪfter you put the line. Explanation:Īctually, ZSH does know how to do git completion out of the box, but you need to turn on the completion feature itself (which from the steps you described I guess you haven't done)Īdding this to your. zshrc and apply the setting to your current terminal session. TL DR one-liner echo 'autoload -Uz compinit & compinit' > ~/.zshrc &.
