zsh compinit: insecure directories

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

    My machine:

    System Version: macOS 10.15.4 (19E287)
    Kernel Version: Darwin 19.4.0
    

    So here is what I did,

    1. run compaudit and it will give you a list of directories it thinks are unsecure.

    2. run sudo chmod -R 755 target_directory (example: sudo chmod -R 755 /usr/local/share/zsh)

    Exmaple:

    compaudit
    

    returns:

    /usr/local/share/zsh

    so I run

    sudo chmod -R 755 /usr/local/share/zsh
    

    read more here link

提交回复
热议问题