zsh compinit: insecure directories

前端 未结 23 2711
攒了一身酷
攒了一身酷 2021-01-29 17:22

What does it mean and how can I fix it?

zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compini         


        
23条回答
  •  天命终不由人
    2021-01-29 17:45

    I got this issue after running the google-cloud-sdk install script, which adds command-completion to the shell via an entry in .zshrc.

    Following Homebrew's instructions for configuring completions in zsh was helpful.

    Additionally, if you receive “zsh compinit: insecure directories” warnings when attempting to load these completions, you may need to run this: chmod -R go-w "$(brew --prefix)/share"

提交回复
热议问题