安装homebrew
如果还未安装homebrew的话,使用以下命令安装
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
卸载命令
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
Step1:更换brew源
查看
cd "$(brew --repo)" && git remote -v
更换
git remote set-url origin https://mirrors.cloud.tencent.com/homebrew/brew.git