深色模式
Homebrew 4.0
install
sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sh
brew -v
config
在.bash_profile
或zprofile
中:
sh
# Homebrew
PATH=$PATH:/opt/homebrew/bin
# Homebrew 镜像 (https://mirrors.ustc.edu.cn/help/brew.git.html)
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"
export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"