Skip to content

Instantly share code, notes, and snippets.

@nczz
Last active June 7, 2026 13:45
Show Gist options
  • Select an option

  • Save nczz/2deab92c450ee5eb8a47f9ea3d6ad462 to your computer and use it in GitHub Desktop.

Select an option

Save nczz/2deab92c450ee5eb8a47f9ea3d6ad462 to your computer and use it in GitHub Desktop.
macOS 開發工作站初始化清單 (Apple Silicon)

macOS 開發工作站初始化清單 (Apple Silicon)

macOS 開發工作站初始化清單

機器:MacBook Pro Apple Silicon / 64 GB RAM macOS:26.x (arm64) 用途:新機照順序建置即可上線開發


Phase 1:系統基礎

項目 說明 安裝方法 前提
Homebrew macOS 套件管理器 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Oh My Zsh Zsh 框架 sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
zsh-autosuggestions 指令自動建議 git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM}/plugins/zsh-autosuggestions Oh My Zsh
zsh-syntax-highlighting 語法高亮 git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM}/plugins/zsh-syntax-highlighting Oh My Zsh
~/.zshrc 設定 主題 tonotdo、plugins: git, z, zsh-autosuggestions, zsh-syntax-highlighting 手動編輯 Oh My Zsh + 外掛

Phase 2:Homebrew 套件

Formula

項目 說明 安裝方法 前提
coreutils GNU 核心工具(gdate, gcp…) brew install coreutils Homebrew
findutils gfind, gxargs brew install findutils Homebrew
gnu-sed gsed brew install gnu-sed Homebrew
grep ggrep(支援 -P) brew install grep Homebrew
mise 多語言版本管理(Go/Node/Java/.NET) brew install mise Homebrew
gh GitHub CLI brew install gh Homebrew
ddev 本地 PHP/WordPress 開發環境 brew install ddev/ddev/ddev Homebrew
mkcert 本地 HTTPS 憑證(ddev 初始化需要) brew install mkcert Homebrew, ddev
rust Rust 工具鏈 brew install rust Homebrew
ripgrep 快速程式碼搜尋 brew install ripgrep Homebrew
pandoc 文件格式轉換 brew install pandoc Homebrew
gemini-cli Google Gemini CLI brew install gemini-cli Homebrew
opencode AI coding 助手 brew install opencode Homebrew
jira-cli Jira 專案管理 CLI brew install jira-cli Homebrew
gogcli Google Workspace CLI brew install gogcli Homebrew
rclone 多雲端同步 brew install rclone Homebrew
mole Mac 系統清理與優化 CLI brew install mole Homebrew
sshpass SSH 密碼自動化 brew install sshpass Homebrew
tree 目錄結構顯示 brew install tree Homebrew
watch 持續監控指令 brew install watch Homebrew
python@3.14 Python 直譯器 brew install python@3.14 Homebrew

Cask

項目 說明 安裝方法 前提
orbstack Docker / Linux VM brew install --cask orbstack Homebrew
sublime-text 文字編輯器 brew install --cask sublime-text Homebrew
codex AI coding CLI brew install --cask codex Homebrew

Phase 3:語言環境(mise)

項目 說明 安裝方法 前提
mise activate 在 .zshrc 加入 eval "$(mise activate zsh)" 手動編輯 ~/.zshrc mise + ~/.zshrc
Go 系統語言 mise use --global go@latest mise activate
Java 21 JVM 開發 mise use --global java@21 mise activate
Node.js LTS JavaScript 執行環境 mise use --global node@lts mise activate
.NET 8 C# 開發 mise use --global dotnet@8 mise activate
mise install 一次安裝所有已設定語言 mise install 上述 use 指令

Phase 4:Python 套件

項目 說明 安裝方法 前提
pandas DataFrame 資料處理 pip3 install pandas Python
numpy 數值計算 pip3 install numpy Python
scipy 科學計算 pip3 install scipy Python
scikit-learn 機器學習 pip3 install scikit-learn Python
duckdb 嵌入式分析資料庫 pip3 install duckdb Python
openpyxl .xlsx 讀寫 pip3 install openpyxl Python
xlrd .xls 讀取 pip3 install xlrd Python
pyodbc ODBC 連線(SQL Server 等) pip3 install pyodbc Python
oracledb Oracle DB 連線 pip3 install oracledb Python
PyMuPDF PDF 解析 / 擷取 pip3 install PyMuPDF Python
playwright 瀏覽器自動化 pip3 install playwright && playwright install Python
requests HTTP 客戶端 pip3 install requests Python
lxml XML/HTML 解析 pip3 install lxml Python
pyyaml YAML 處理 pip3 install pyyaml Python
tqdm 進度條 pip3 install tqdm Python

Phase 5:Node.js 全域套件

項目 說明 安裝方法 前提
@marp-team/marp-cli Markdown → 簡報產生器 npm install -g @marp-team/marp-cli Node.js (mise)
@earendil-works/pi-coding-agent Pi — 終端 AI coding agent (pi.dev) npm install -g @earendil-works/pi-coding-agent Node.js (mise)

Phase 6:桌面應用程式(非 Homebrew)

項目 用途 安裝方法 前提
iTerm 終端機 iterm2.com 下載
Google Chrome 瀏覽器 / DevTools google.com/chrome
Figma 設計協作 figma.com 下載
Kiro AI 開發助手 kiro.dev 下載
Obsidian 知識庫 / 文件管理 obsidian.md 下載
Dropbox 雲端同步(設定檔/筆記) dropbox.com 下載
Enpass 密碼管理 enpass.io 下載
LocalSend 區域網路傳檔 localsend.org 下載
WireGuard VPN App Store
Windows App 遠端桌面(RDP) App Store
CleanShot X 截圖 / 錄影 cleanshot.com
Rectangle 視窗管理 rectangleapp.com
Bob 翻譯 App Store

Phase 7:環境設定與驗證

項目 說明 方法 前提
SSH Key ed25519 金鑰 ssh-keygen -t ed25519
Git config 設定 user.name / user.email git config --global ...
~/.ssh/config Include OrbStack + 遠端主機設定 手動建立或雲端同步 SSH Key + Dropbox
Dropbox 同步 等待筆記/設定檔同步完成 登入 Dropbox App Dropbox
ddev 初始化 信任本地憑證 mkcert -install mkcert + ddev
BrowseForge 反偵測瀏覽器自動化工作站 docker pull ghcr.io/nczz/browseforge:latest OrbStack (Docker)
驗證:Docker 容器正常 docker run hello-world OrbStack
驗證:語言 各語言版本正確 mise list mise install
驗證:專案 clone 一個專案能跑 git clone → build → run 全部

安全備忘

規則 說明
不在 .zshrc 放明文 token 使用各工具自帶 credential 機制
SSH Key 使用 ed25519,不使用舊 RSA
API Token 管理 jira: jira init / aws: aws configure / gcloud: gog auth

重要路徑

路徑 內容
~/Projects/ 開發專案
~/Dropbox/ 雲端同步(筆記、SSH config)
~/.ssh/ SSH 金鑰與設定
~/.config/mise/config.toml mise 語言版本設定
~/.kiro/ Kiro AI 設定
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment