← 返回
未分类 中文

Chezmoi

chezmoi dotfile management. apply - interactive diff review per file [apply.md], consolidate - merge duplicate templates [consolidate.md], cross-platform - W...
chezmoi dotfile management. apply - interactive diff review per file [apply.md], consolidate - merge duplicate templates [consolidate.md], cross-platform - W...
drumrobot drumrobot 来源
未分类 clawhub v0.3.0 3 版本 100000 Key: 无需
★ 0
Stars
📥 485
下载
💾 1
安装
3
版本
#latest

概述

chezmoi

chezmoi dotfile template management and workflow automation.

Topics

TopicDescriptionGuide
---------------------------
applyInteractive diff review — per-file AskUserQuestion approval + commit-tidyapply.md
consolidateDetect duplicate modify templates and generate shared scriptsconsolidate.md
cross-platformmacOS/Windows compatibility diagnostics and fixescross-platform.md
doctorCheck required files and auto-copy if missingdoctor.md
mcp-syncMCP server configuration synchronizationmcp-sync.md

Related Skills

FeatureSkill
----------------
Commit splittingcommit-splitter

Quick Reference

Apply (Interactive Diff Review)

"chezmoi apply"             → Per-file diff review + AskUserQuestion approval
"chezmoi diff"              → Show all changes, decide per file

Consolidate (Template Merging)

"chezmoi check duplicates"  → Detect templates with identical content
"merge templates"           → Consolidate into shared scripts

Doctor (Environment Validation)

"chezmoi doctor"            → Check for required scripts
"missing script"            → Auto-copy scripts to ~/bin/

MCP Sync (MCP Synchronization)

"add MCP server"            → Add to mcp-servers.json and apply
"MCP sync"                  → Propagate MCP config to all apps

Directory Structure

~/.local/share/chezmoi/
├── .chezmoi-lib/              # Shared scripts
│   ├── executable_vscode-settings.sh
│   ├── executable_vscode-keybindings.sh
│   ├── executable_mcp-servers.sh
│   ├── executable_generate-utcp-config.sh
│   └── executable_sourcegit-preference.sh
├── .chezmoitemplates/         # Shared data
│   └── mcp-servers.json       # MCP server single source of truth
├── .chezmoiignore             # OS-specific path branching
├── modify_*.sh.tmpl           # Per-app modify templates
├── private_Library/           # macOS app settings
│   └── private_Application Support/
└── AppData/                   # Windows app settings
    ├── Roaming/               # %APPDATA%
    └── Local/                 # %LOCALAPPDATA%

Required Validation Before Apply

Always run chezmoi diff to review changes before any chezmoi apply.

# 1. Preview changes
chezmoi diff

# 2. Apply after user approval
chezmoi apply
  • Skip apply if diff output is empty
  • Show diff results to user and get approval via AskUserQuestion
  • See the chezmoi section in ~/.agent/rules/iac.md

版本历史

共 3 个版本

  • v0.3.0 当前
    2026-06-04 13:19
  • v0.1.2
    2026-05-21 13:18 安全 安全
  • v0.1.1
    2026-05-07 06:52 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 331,135
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,122
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,243