分类
linux mac

zsh .zprofile

从 macOS Catalina 开始,zsh 成为了默认 shell

https://support.apple.com/en-us/HT208050

.zprofile 相当于 .bash_profile
.zshrc 相当于 .bashrc

zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? ccompinit: initialization aborted
complete:13: command not found: compdef
complete:13: command not found: compdef
complete:13: command not found: compdef
检查$ compaudit
There are insecure directories:
/usr/local/share/zsh/site-functions
/usr/local/share/zsh

修复

chown -R "$(whoami)" /usr/local/share/zsh/site-functions /usr/local/share/zsh
chmod 755 /usr/local/share/zsh/site-functions /usr/local/share/zsh

发表评论

电子邮件地址不会被公开。 必填项已用*标注