记一次 Mac 重装系统
Mac重装系统
- 提前备份电脑重要数据(本人选择的U盘备份)
- 推荐可用WiFi或网线联网
- 电脑关机
command + R + 开机键- macOS 实用工具
- 选择“磁盘工具”
- 选择“Macintosh HD”
- 选择“抹掉”按钮
- 选择“APFS”格式
- 完成
- macOS 实用工具
- 选择“重新安装 macOS”
- 一直继续同意安装
- 下载安装完成后按步骤完成引导设置
调整界面样式
调整桌面图标大小
- 桌面空白处按键
command+j
- 桌面空白处按键
调整程序坞位置大小
- 设置 -> 桌面与程序坞
调整 launchpad 图标行列大小
# 调整 launchpad 图标行列大小
defaults write com.apple.dock springboard-columns -int 列数
defaults write com.apple.dock springboard-rows -int 行数
defaults write com.apple.dock ResetLaunchPad -bool TRUE
killall Dock
# 恢复默认 launchpad 图标行列
defaults write com.apple.dock springboard-rows Default
defaults write com.apple.dock springboard-columns Default
killall Dock
安装各种应用程序
- App Store 重新下载已购买的应用
- Google Chrome(登陆账号同步插件配置)
- 网址收藏 sankki
- VScode(登陆账号同步插件配置)
- Xcode(git)
- 写作类
- 设计类
- 网盘类
- 开发类
- 辅助工具类
安装 brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
安装 iterm2、zsh、oh-my-zsh
- 按顺序依次安装 iterm2、zsh、oh-my-zsh
- 配置相关主题、插件
安装 node
- 官网下载 node 并安装
node -v
npm -v
- 查看镜像 & 设置淘宝镜像
npm config get registry
npm config set registry https://registry.npm.taobao.org
- 安装 n 管理 node
npm install -g n
n v16.18.0
n rm v16.18.0
配置 hosts
- github 和 google
- uTools 搜索 host
配置 git ssh
- 设置用户名和邮箱
git config --global -l
git config --global user.name "name"
git config --global user.email "email"
- 生成 ssh
cd ~/.ssh
ssh-keygen -t rsa -C "email"
cat id_rsa.pub
- 配置 ssh
Github - Settings - SSH - add
- 拉取项目