在mac中安装Homebrew以及配置环境变量
【代码】在mac中安装Homebrew以及配置环境变量。
·
brew 是什么 ?
brew 源码:GitHub - Homebrew/brew: 🍺 The missing package manager for macOS (or Linux)
brew 官网:macOS(或 Linux)缺失的软件包的管理器 — Homebrew
brew安装
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
环境变量配置:
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
效果图

更多推荐



所有评论(0)