Mac 下homebrew的使用
更换国内镜像,提高安装速度 #下载homebrew安装脚本 curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install #切换国内镜像 替换下载的brew_install脚本中的 BREW_REPO = “https://github.com/Homebrew/brew”.freeze 为 BREW_REPO = “https://mirrors.ustc.edu.cn/brew.git “.freeze 安装homebrew ruby brew_install 更换国内镜像,提高homebrew下软件安装速度 cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git 安装brew-cask brew