brew 安装
- 安装脚本
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2. 卸载脚本
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
3. 安装成功后的check
brew config
4 切换阿里镜像源
# 替换brew.git:
cd "$(brew --repo)" && git remote set-url origin [https://mirrors.aliyun.com/home](https://link.zhihu.com/?target=https%3A//mirrors.aliyun.com/homebrew/brew.git)
# 替换homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" && git remote set-url origin [https://mirrors.aliyun.com/home](https://link.zhihu.com/?target=https%3A//mirrors.aliyun.com/homebrew/homebrew-core.git)
#zsh 替换homebrew-bottles镜像,Mac OS在10.15系统开始,默认的shell都换成了zsh
echo 'export HOMEBREW_BOTTLE_DOMAIN=[https://mirrors.aliyun.com/homebrew/homebrew-bottles](https://link.zhihu.com/?target=https%3A//mirrors.aliyun.com/homebrew/homebrew-bottles)' >> ~/.zshrc
pip 安装
curl https://bootstrap.pypa.io/get-pip.py | python3
mac 上完全卸载idea
rm -rf ~/.JetBrains*
rm -rf ~/Library/Preferences/JetBrains*
rm -rf ~/Library/Application\ Support/JetBrains*
rm -rf ~/Library/Caches/JetBrains*
rm -rf ~/Library/Logs/JetBrains*
- 进入目录
~/Library/Preferences
ls | grep jetbrains
rm -rf com.jetbrains.intellij.plist
2. 进入目录~/Library/Caches/IntelliJIdea
- 目录
~/Library/Application\ Support/
rm -rf JetBrains