chezmoi

Edit, diff, and apply home directory dotfiles with chezmoi.

Updated May 25, 2025
One-click install
npx skills add https://github.com/temple-slope/dotfiles --skill chezmoi-temple-slope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chezmoi
Source: https://github.com/temple-slope/dotfiles/tree/main/dot_claude/skills/chezmoi
Command: npx skills add https://github.com/temple-slope/dotfiles --skill chezmoi-temple-slope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

手動でホームディレクトリの設定を編集する煩雑さを避け、chezmoi を用いた再現性の高い dotfiles 管理を実現します。

Core Features & Use Cases

  • chezmoi を用いてソースディレクトリを唯一の信頼元としてホームディレクトリへ設定を適用します。
  • 変更差分の確認(diff)を経て安全に適用(apply)するワークフローを提供します。
  • ローカル環境を複数のマシン間で同期し、設定の一貫性を維持します。

Quick Start

初回は chezmoi apply を実行して dotfiles を適用します。

Frequently Asked Questions about chezmoi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage dotfiles across multiple machines with chezmoi?

You manage dotfiles across machines by treating the chezmoi source directory as the single source of truth and running chezmoi apply to sync configurations to your home directory, ensuring a consistent and reproducible environment.

What is the best way to safely apply configuration changes to my home directory?

The safest way to apply configuration changes is to use chezmoi edit to modify source files, chezmoi diff to review the exact changes, and then chezmoi apply to write them to your home directory.

Can I use chezmoi for macOS configuration management?

Yes, you can use chezmoi for macOS configuration management. It applies dotfiles from a source directory to your home directory, maintaining a consistent environment across macOS machines.

How does chezmoi handle dotfiles synchronization between computers?

Chezmoi handles dotfiles synchronization by using a source directory as the source of truth. You run chezmoi apply on each machine to enforce configuration consistency and reproduce the same home directory setup.

Do I need a specific workflow to edit dotfiles with chezmoi?

Yes, you need a chezmoi-based workflow. The standard process involves using chezmoi edit to modify source files, chezmoi diff to verify changes, and chezmoi apply to update the home directory safely.