基础环境
Command Line Tools
Mac 的命令行开发者基础工具合集,包括 clang、make、git、lldb等等
1 | xcode-select --install |
该命令会触发图形化安装程序弹窗(需点击确认)
Homebrew
依赖 git,请先安装 Command Line Tools
建议使用国内镜像安装
1 | /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" |
安装结束后,更新环境变量
1 | source /Users/XXXX/.zprofile |
工具
htop
增强版 top,用于查看内存
1 | brew install htop |
使用 htop
命令查看动态内存使用情况
ncdu
磁盘占用查看工具
1 | brew install ncdu |
ncdu
查看当前目录ncdu <PATH>
查看指定目录
orbstack
1 | brew install orbstack |
镜像配置
- 配置
- 重启 orbstack