安裝Homebrew
如果你的Mac已經(jīng)安裝非原生M1版本的Homebrew,一樣可以使用本腳本苍匆。腳本會提示需刪除舊的Homebrew并備份數(shù)據(jù)至桌面漂佩。
Gitee項目地址: https://gitee.com/cunkai/HomebrewCN
完整版安裝腳本:
/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/Homebrew.sh
安裝好Homebrew后祝钢,執(zhí)行以下命令刷新系統(tǒng)配置
source /Users/ericli/.zprofile
接著就可以通過以下命令查看Homebrew的版本了
brew -v
注意:如果沒有執(zhí)行source /Users/ericli/.zprofile
命令,則會看到是舊的Homebrew版本
卸載brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
? 2019-2022 Shellblock.