⭐ Step 1:安装开发基础设施
🔧 1. Homebrew 包管理器(前面已安装)
- 用来安装所有 CLI 工具、语言环境
🧩 2. 终端环境(强烈推荐)
安装 Zsh 框架
oh-my-zsh(简单)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
或使用 starship(更快更现代)
brew install starship
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
Zsh 插件
brew install zsh-autosuggestions zsh-syntax-highlighting
在 ~/.zshrc 中加:
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
⭐ Step 2:编程语言环境
🐍 Python 开发环境(推荐:pyenv)
brew install pyenv
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
安装 Python:
pyenv install 3.12
pyenv global 3.12
或使用 Conda(如果你需要数据科学):
brew install --cask miniconda
🟦 Node.js(nvm)
brew install nvm
mkdir ~/.nvm
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.zshrc
echo '[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh"' >> ~/.zshrc
安装 Node:
nvm install --lts
🌀 Go 语言
brew install go
🐳 Docker(开发必备)
brew install --cask docker
⭐ Step 3:Git & SSH 开发环境
生成 SSH key
ssh-keygen -t ed25519 -C "your_email@example.com"
设置 Git 全局配置
git config --global user.name "你的名字"
git config --global user.email "你的邮箱"
git config --global pull.rebase false
常用 alias(可加到 ~/.zshrc):
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gco='git checkout'
alias ga='git add'
alias gc='git commit'
⭐ Step 4:开发工具 IDE
JetBrains Toolbox
- 安装 PyCharm / GoLand / IntelliJ
- 自动更新、自动管理 SDK
VS Code(轻量)
常装插件:
- Python
- Pylance
- GitLens
- Prettier
- TailwindCSS
⭐ Step 5:数据库工具
根据你的技术栈选择:
通用
- TablePlus(强烈推荐)
- Postico / RedisInsight
- DBngin(本地快速启动 MySQL/Postgres)
⭐ Step 6:辅助工具(专业开发者常备)
网络 & 调试
- Charles / Proxyman(网络抓包)
- Insomnia / Postman(接口调试)
设计 & 协作
- Figma
- Zeplin
- Loom(录屏)
⭐ Step 7:自动化与增强
- Raycast(全局搜索 + 自动化)
- Hammerspoon(神级自动化,可和 HHKB 搭配)
- Alfred(如果不想用 Raycast)
📦 附:最终附赠终极命令(超级快)
一次性安装常用软件:
brew install git wget tree tmux zsh neovim pyenv nvm go
brew install --cask iterm2 rectangle raycast cleanclip docker tableplus