macos 安装 oh my zh问题汇总
1:~/.zshrc 文件增加 source ~/.bash_profile 后执行 source ~/.zshrc 报错
compinit:498: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask
方案:在普通shell执行 brew cleanup
2:maven手工安装的,/Users/zhonghuahero/Documents/mavenxxx
安装 oh my zh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh) (可能需要vpn)
安装了 oh my zh后 which mvn :/usr/local/bin/mvn
解决方案:删除
rm -fr /usr/local/bin/mvn
3:/usr/share/zsh权限
解决方案:执行下面两个命令
chmod 755 /usr/local/share/zsh
chmod 755 /usr/local/share/zsh/site-functions