记一次重装Mac的记录
备份 mkdir backup cd backup brew list > brew-liwt.txt ls /Applications > Applications.txt rsync -rR ~/.bash_profile ~/.config/clash ~/.docker/{config.json,daemon.json} ~/.gitconfig ~/.gitignore_global ~/.gradle/init.gradle ~/.jetbrains ~/.jetbrains.vmoptions.sh ~/.kube ~/.m2/settings.xml ~/.npmrc ~/.ssh ~/.yarnrc ~/.zshrc . 重装系统 重新启动 启动时按住Commond + R,直到出现 清理磁盘 重新安装系统 安装软件 export all_proxy=socks5://192.168.0.2:1080 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/liweitao/.zprofile\n eval "$(/usr/local/bin/brew shellenv)" brew update brew install --cask google-chrome qq wechat balenaetcher redisinsight docker finalshell goland intellij-idea webstorm pycharm sublime-text sunloginclient iina telegram mailmaster microsoft-remote-desktop tunnelblick openvpn-connect neteasemusic netnewswire obsidian visual-studio-code wpsoffice-cn caffeine tabby bob brew install nvm go hugo maven sqlite mvnvm git-lfs git lfs install sudo ln -sfn $HOMEBREW_PREFIX/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk nvm install v18.19.0 nvm use v18.19.0 npm install -g yarn git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k git clone https://github.com/zsh-users/zsh-completions $ZSH_CUSTOM:/plugins/zsh-completions git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" p10k configure .zshrc ...