mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-13 15:09:34 +00:00
feat: 完善 dotfiles 迁移功能和备份脚本
主要改进: - .gitignore: 添加敏感数据排除规则和备份文件排除 - .zshrc: 添加工作函数标记注释 (# ==== WORK:) - git/config: 模板化占位符 (YOUR_NAME, YOUR_EMAIL, YOUR_SSH_SIGNING_KEY) - setup.sh: 增强备份功能,支持完整配置导出 - Brewfile 备份 - Git 配置摘要(脱敏) - SSH 公钥备份 - 1Password 配置文档 - VSCode 扩展列表 - 备份报告生成 - README.md: 重写为完整项目文档 - CHECKLIST.md: 新机器配置检查清单 - MIGRATION_GUIDE.md: 个人备份说明文档 - QUICKSTART.md: 3-5 分钟快速开始指南 使用方式: ./setup.sh backup # 备份当前配置 ./setup.sh full-recover # 新机器完整恢复
This commit is contained in:
77
.gitignore
vendored
77
.gitignore
vendored
@@ -9,3 +9,80 @@ zed/.tmp*
|
||||
zed/embeddings
|
||||
zed/conversations
|
||||
ssh/config
|
||||
|
||||
# === 敏感数据排除 ===
|
||||
# SSH 密钥和配置
|
||||
.ssh/
|
||||
known_hosts
|
||||
authorized_keys
|
||||
id_rsa*
|
||||
id_ed25519*
|
||||
*.pem
|
||||
|
||||
# 1Password
|
||||
.1password/
|
||||
|
||||
# Kubernetes
|
||||
.kube/
|
||||
kubeconfig*
|
||||
*.kubeconfig
|
||||
|
||||
# 环境变量和 secrets
|
||||
*.secret
|
||||
*.key
|
||||
credentials.json
|
||||
secrets.txt
|
||||
|
||||
# 缓存目录
|
||||
__pycache__/
|
||||
.pytest_cache/
|
||||
.mypy_cache/
|
||||
.node_cache/
|
||||
.cache/
|
||||
tmp/
|
||||
temp/
|
||||
|
||||
# IDE
|
||||
.idea/
|
||||
.vscode/workspace*
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
|
||||
# 语言版本文件
|
||||
.python-version
|
||||
.node-version
|
||||
.rust-version
|
||||
.tool-versions
|
||||
|
||||
# 构建产物
|
||||
dist/
|
||||
build/
|
||||
target/
|
||||
*.o
|
||||
*.a
|
||||
*.so
|
||||
*.dylib
|
||||
|
||||
# Mac 特有
|
||||
.Trash/
|
||||
.VolumeIcon.icns
|
||||
.apdisk
|
||||
|
||||
# 日志
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-error.log
|
||||
pnpm-debug.log*
|
||||
|
||||
# === 备份文件排除 ===
|
||||
# Backup reports and sensitive configs
|
||||
.git_config_summary.txt
|
||||
*.backup.*
|
||||
ssh_backup_*/
|
||||
.backup_report_*.md
|
||||
|
||||
# Generated config exports (contain sensitive info)
|
||||
.1password_config.txt
|
||||
.kube_contexts.txt
|
||||
.vscode_extensions.txt
|
||||
|
||||
Reference in New Issue
Block a user