Mac M1 brew 安裝筆記

 % cat zshrc 

path=('/opt/homebrew/bin' $path)

export PATH


https://iter01.com/567865.html


sudo mkdir -p /opt/homebrew

sudo chown -R $(whoami) /opt/homebrew
cd /opt
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew

如果使用的是zsh則直接修改~/.zshrc,如果使用的是bash,則修改~/.bash_profile

path=('/opt/homebrew/bin' $path)
export PATH

留言

熱門文章