zsh compinit: insecure directories

前端 未结 23 2160
攒了一身酷
攒了一身酷 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:58

    I got the same warnings when I sudo -i starting a root shell, @chakrit's solution didn't work for me.

    But I found -u switch of compinit works, e.g. in your .zshrc/zshenv or where you called compinit

    compinit -u
    

    NB: Not recommended for production system

    See also http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Initialization

提交回复
热议问题