使用国内镜像源安装
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
M芯片用户的特殊配制
为当前用户设置 /opt/homebrew 路径权限
sudo chown -R $(whoami) /opt/homebrew
如果提示找不到 brew 命令
设置 /opt/homebrew/bin 路径到环境变量 PATH
fish ~/.config/fish/config.fish
set PATH /opt/homebrew/bin $PATH
zsh ~/.zshrc
path=('/opt/homebrew/bin' $path)
export PATH