跨平台的开发环境配置,包含 macOS 和 Windows 的个人配置文件及常用应用清单。
dotfiles/
├── mac/ # macOS 配置
│ ├── nvim/ # Neovim 配置
│ ├── .hammerspoon/ # Hammerspoon 窗口管理
│ ├── fish/ # Fish shell 配置
│ ├── lf/ # lf 文件管理器
│ └── starship.toml # Starship 提示符
└── win/ # Windows 配置
└── .wezterm.lua # WezTerm 终端
- Visual Studio Code - 轻量级代码编辑器,插件生态丰富,支持几乎所有编程语言,内置 Git、调试器和终端。 🪟 🍎 🐧
- IntelliJ IDEA Ultimate - JetBrains 出品的 Java/Kotlin IDE,提供强大的代码补全、重构、调试和企业级框架支持。 🪟 🍎 🐧
- DataGrip - 专业数据库 IDE,支持主流关系型数据库和智能 SQL 编辑。 🪟 🍎 🐧
- Fork - Git 图形客户端,提供直观的分支视图和强大的 rebase / 冲突解决能力。 🪟 🍎
- Bruno - 开源 API 调试工具,Postman 替代品,请求以纯文本形式存储,便于版本控制。 🪟 🍎 🐧
- PDManer - 开源数据库建模工具,支持正向 / 逆向工程和文档生成。 🪟 🍎 🐧
- OpenCode - 开源 AI 编程代理,支持终端、IDE 和桌面应用,可连接多种 LLM 提供商。 🪟 🍎 🐧
- Oh-My-OpenCode - 最佳 Agent 框架,提供包含 Sisyphus 在内的 10 个专业化 AI 代理。 🪟 🍎 🐧
- Scoop - 适用于 Windows 的命令行软件安装和管理器。 🪟
- Homebrew - macOS 和 Linux 的包管理器,简化软件安装和管理。 🍎 🐧
- Git - 分布式版本控制系统,用于代码协作和版本历史管理。 🪟 🍎 🐧
- Alacritty - GPU 加速的终端模拟器,快速且内存占用低。 🪟 🍎 🐧
- Neovim - 现代化 Vim 编辑器,内置 LSP 支持、异步操作和高度可定制能力。 🪟 🍎 🐧
- zoxide - 更智能的 cd 工具,支持目录历史和模糊跳转。 🪟 🍎 🐧
- nvm - Node.js 版本管理器,用于多版本 Node 环境切换。 🪟 🍎 🐧
- Starship - 跨平台、快速、可定制的 shell 提示符。 🪟 🍎 🐧
- TranslucentTB - Windows 任务栏美化工具,支持透明和模糊效果。 🪟
- TrafficMonitor - 任务栏系统状态监控工具,显示网速和资源占用。 🪟
- clash-party - Clash 图形客户端,支持规则系统、多核心和订阅管理。 🪟 🍎 🐧
- PowerToys - Windows 官方效率工具集,包含窗口管理、快捷键、批量重命名等功能。 🪟
- Bandizip - 轻量快速的压缩 / 解压工具。 🪟 🍎
- Buttercup - 开源密码管理器,支持 AES-256 加密。 🪟 🍎 🐧
- Thunderbird - 开源邮件客户端,支持多账户和 PGP 加密。 🪟 🍎 🐧
- Element - 基于 Matrix 协议的去中心化通讯客户端。 🪟 🍎 🐧
- Foxit PDF Reader - 轻量快速的 PDF 阅读器。 🪟 🍎 🐧
- 剪映 - 视频剪辑软件,适合内容创作和简单后期。 🪟 🍎
- WizTree - 极速磁盘空间分析工具,用于定位大文件。 🪟
- WindTerm - SSH / Telnet / Serial 客户端,支持会话管理和文件传输。 🪟 🍎 🐧
- ToDesk - 跨平台远程桌面工具,支持文件传输和屏幕共享。 🪟 🍎 🐧
- FastStone Capture - 截图与屏幕录制工具,支持滚动截图和标注。 🪟
- Umi-OCR - 开源离线 OCR 工具,支持截图和 PDF 识别。 🪟
- JD-GUI - Java 反编译工具,用于阅读和分析 class / jar 文件。 🪟 🍎 🐧
打开 PowerShell 终端(版本 5.1 或更高版本)并从 PS C:> 提示符运行:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expressionscoop install clash-party如果 scoop 很慢先去手动下个便携版,临时用一下,scoop 安装了再删掉。
# 设置 cmd 代理(用户级别)
setx http_proxy "http://127.0.0.1:7890"
setx https_proxy "http://127.0.0.1:7890"scoop install git
# 最小配置信息
git config --global user.name 'your_name'
git config --global user.email 'your_email'
# 修改 HTTP 传输请求数据时最大的缓存字节数
git config --global http.postBuffer 524288000
# 配置全局 git 编码 解决中文乱码情况
git config --global gui.encoding utf-8
# 配置代理提高 git 速度
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890
# 常用git log 命令 设置别名
# 查看自己的提交(简洁描述)
git config --global alias.lm "log --no-merges --color --date=format:'%Y-%m-%d %H:%M:%S' --author='your_name' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit"
# 查看自己的提交(展示修改的文件概览)
git config --global alias.lms "log --no-merges --color --stat --date=format:'%Y-%m-%d %H:%M:%S' --author='your_name' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit"
# 查看提交(简洁描述)
git config --global alias.ls "log --no-merges --color --graph --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit"
# 查看提交(展示修改的文件概览)
git config --global alias.lss "log --no-merges --color --stat --graph --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit"New-Item -ItemType SymbolicLink -Path "$env:APPDATA\alacritty" -Target "$(Get-Location)\win\alacritty"scoop install neovim make unzip gcc ripgrep fd gzip mingw tree-sitter
New-Item -ItemType SymbolicLink -Path "$env:LOCALAPPDATA\nvim" -Target "$(Get-Location)\general\nvim"scoop install zoxide fzfscoop install starship
Copy-Item ".\win\starship.toml" "$HOME\.config\starship.toml" -ForceCopy-Item ".\win\Microsoft.PowerShell_profile.ps1" "$HOME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1" -Forcescoop install translucenttb
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "TranslucentTB" -Value "C:\Users\Administrator\scoop\apps\translucenttb\current\TranslucentTB.exe"scoop install trafficmonitor设置开机自启和根据任务栏颜色自动设置背景色。
scoop install PowerToys
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "PowerToys" -Value "C:\Users\Administrator\scoop\apps\PowerToys\current\PowerToys.exe"实用程序打开:环境变量、速览、图像大小调整器、颜色选取器、FancyZones、PowerToys Runkk
MIT