SKILL

chezmoi

通过 chezmoi 管理 dotfiles:安全应用配置、销毁文件、管理 LaunchAgents 和外部资源,以及配置和模板中的易错点。

译文已校对
查看英文原文

Manage dotfiles via chezmoi — apply safely, destroy files, manage LaunchAgents and externals, config and template gotchas

适用对象:对象待分类。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Deploy workflow
  • Notes
  • Gotchas

chezmoi apply deploys source files to and runs runonchange scripts (brew bundle, skill sync, etc.). Changes land via chezmoi-deploy, not pull requests. The source dir is pinned to the primary checkout, so a bare chezmoi apply always reads main — work is verified render-only until deployed. Verify render-only — never a bare chezmoi apply from a worktree. Pass -S "$(pwd)" with no-mutation verbs: chezmoi diff -S "$(pwd)", chezmoi apply -n -v -S "$(pwd)" (dry-run; also shows which scripts would fire), chezmoi cat -S "$(pwd)" . Deploy with chezmoi-deploy . It locks, rebases the branch onto the primary checkout's main when needed, fast-forward-merges it into main, runs chezmoi apply --force, and pushes main to origin. A rebase conflict is aborted; resolve it in the worktree and retry. Safe from a hosted aoe session: the session runs in a tmux pane independent of any LaunchAgent, and the generator only reloads agents whose plist content actually changed — it never touches the tmux pane a deploy is running from. Escape hatch — to exercise one deployed file's runtime behavior without a full deploy: chezmoi apply -S "$(pwd)" --exclude=scripts --persistent-state "${TMPDIR:-/tmp}/branch-state.

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
athal7/dotfiles
源文件
dot_agents/skills/chezmoi/SKILL.md
固定版本
020f267ef55d4b97fc32c63bd9c077f9395faf9e
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:athal7/dotfiles · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-10T02:00:28.581Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。