开发工具
Claude
# 安装 Claude 桌面客户端(Anthropic 官方 AI 助手应用)
brew install --cask claude
Arc 浏览器
# 安装 Arc 浏览器(基于 Chromium 的现代浏览器,支持 Spaces 和侧边栏管理)
brew install --cask arc
Homebrew
# 国人写的一键安装脚本,自动换源(官方源的速度你懂的)
/bin/zsh -c "$(curl -fsSL <https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh>)"
RayCast
# 安装 Raycast(Spotlight 替代品,支持插件扩展、剪贴板历史、窗口管理等)
brew install --cask raycast
Zed 编辑器
# 安装 Zed(Rust 编写的高性能代码编辑器,内置 AI 助手和协作功能)
brew install --cask zed
OrbStack(Docker 替代品,更轻量)
# 安装 OrbStack(Docker Desktop 替代品,启动更快、资源占用更少、支持 Linux 虚拟机)
brew install --cask orbstack
CleanShot X(截图/录屏)
# 安装 CleanShot X(强大的截图/录屏工具,支持滚动截图、标注、OCR 等)
brew install --cask cleanshot
Git
# 安装 Git 版本控制工具
brew install git
warp(代替 item2)
# 安装 Warp 终端(现代化终端,支持 AI 命令补全、命令块、协作分享)
brew install --cask warp
vimplus(喜欢 vim 的可以安装)
# 克隆 vimplus 配置仓库到本地 ~/.vimplus 目录
git clone <https://github.com/chxuan/vimplus.git> ~/.vimplus
# 进入 vimplus 目录
cd ~/.vimplus
# 运行安装脚本(自动安装插件和配置 vim)
./[install.sh](<http://install.sh>)
oh-my-zsh(zsh插件,提供了很多主题,美化终端)
# 一键安装 oh-my-zsh(从官方仓库下载并执行安装脚本)
sh -c "$(curl -fsSL <https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh>)"
zsh-autosuggestions
# 安装命令自动补全插件(根据历史记录自动提示,按 → 键补全)
brew install zsh-autosuggestions
# 安装额外的命令补全定义(补充 docker, cmake, mix 等第三方工具的 Tab 补全)
brew install zsh-completions
# 安装语法高亮插件(正确命令显示绿色,错误命令显示红色)
brew install zsh-syntax-highlighting
额外补充
# 在 .zshrc 中添加以下配置以启用补全功能
if type brew &>/dev/null; then
# 将 zsh-completions 路径添加到 FPATH
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
# 加载并初始化补全系统
autoload -Uz compinit
compinit
fi
# 如果补全不生效,强制重建 zcompdump 缓存
rm -f ~/.zcompdump; compinit
# 如果出现 "insecure directories" 警告,修复目录权限
chmod go-w '/opt/homebrew/share'
chmod -R go-w '/opt/homebrew/share/zsh'
golang 下载
# 安装 Go 语言(也可以从官网 <https://go.dev/dl/> 手动下载)
brew install go
环境
Go环境配置【goland/terminal】
# 查看当前 Go 环境变量
go env
# 配置 Go 代理(加速国内下载速度,direct 表示直连备用)
echo 'export GOPROXY=https://goproxy.io,direct' >> ~/.zshrc
# 配置私有仓库(跳过代理直接访问,替换为你的私有仓库地址)
echo 'export GOPRIVATE=[your repo]' >> ~/.zshrc
# 将 Go 安装的二进制文件路径添加到 PATH(请替换为你的实际路径)
echo 'export PATH=$HOME/go/bin:$PATH' >> ~/.zshrc
# 启用 Go Modules 模式
echo 'export GO111MODULE=on' >> ~/.zshrc
# 重新加载配置使其生效
source ~/.zshrc
Git环境配置
配置ssh公钥,在 github/gitlab 中配置公钥后,即可免密进行 git 操作
# 查看当前 Git 配置
git config --list
# 设置全局用户名
git config --global [user.name](<http://user.name>) "your-name"
# 设置全局邮箱
git config --global [user.email](<http://user.email>) [your-email@example.com](<mailto:your-email@example.com>)
# 使用 git 协议代替 https(用于访问内部仓库,根据需要配置)
# git config --global url."git@your-git-server:".insteadOf "<https://your-git-server/>"
# 检查配置是否生效
cat ~/.gitconfig
protobuf
# 安装 Protocol Buffers 编译器(用于生成各语言的序列化代码)
brew install protobuf
thrift
# 手动下载 thrift 0.11.0 版本后,移动到 GOPATH 中
# 修改执行权限
chmod 777 thrift11
# 验证安装是否成功
thrift11 --version
conda
# 安装 Anaconda(Python 科学计算和数据分析环境管理器)
brew install --cask anaconda
# 创建名为 myenv 的虚拟环境,指定 Python 3.10
conda create -n myenv python=3.10
# 激活虚拟环境
conda activate myenv
Python
# 安装 uv(超快的 Python 包管理器,Rust 编写,pip 替代品)
brew install uv
Node
# 安装 Node.js 运行时
brew install node
# 安装 nvm(Node 版本管理器,方便切换不同 Node 版本)
brew install nvm
cc-switch(快速切换 Claude API 配置)
# 安装 cc-switch(用于快速切换 Claude Code 的 API 配置)
brew install nicerobot/cc-switch/cc-switch
数据库
Redis
# 安装 Redis 内存数据库
brew install redis
# 启动 Redis 服务(作为后台服务运行)
brew services start redis
MySQL
# 安装 MySQL 关系型数据库
brew install mysql
# 启动 MySQL 服务(作为后台服务运行)
brew services start mysql
# 运行安全配置向导(设置 root 密码、删除匿名用户等)
mysql_secure_installation