chezmoi-apply

Edit chezmoi source files and apply dotfile changes to system paths.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/teppei22/dotfiles --skill chezmoi-apply
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chezmoi-apply
Source: https://github.com/teppei22/dotfiles/tree/main/dot_claude/skills/chezmoi-apply
Command: npx skills add https://github.com/teppei22/dotfiles --skill chezmoi-apply

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables safe, centralized management of your dotfiles with chezmoi by focusing edits in the source directory and syncing changes to the system, preventing direct edits to critical configuration files and ensuring consistency across machines.

Core Features & Use Cases

  • Edit source configurations under ~/.local/share/chezmoi and apply them to the system with chezmoi.
  • Restart and verify affected services after applying changes (e.g., sketchybar, yabai, skhd, rift).
  • Use for common desktop configurations such as sketchybar widgets, window manager settings, Neovim/editor configs, and shell tweaks.

Quick Start

Edit source files in ~/.local/share/chezmoi and run chezmoi apply to propagate changes to ~/.config; restart services as needed; verify changes.

Frequently Asked Questions about chezmoi-apply

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

FAQPage Schema
How do I edit and apply chezmoi dotfiles without breaking my system configuration?

To edit chezmoi dotfiles safely, modify source files in ~/.local/share/chezmoi and run chezmoi apply to sync changes to system paths like ~/.config, preventing direct edits to critical configuration files and ensuring consistency across machines.

Can I automatically restart services like sketchybar and yabai after applying chezmoi changes?

Yes, after applying chezmoi dotfile changes, affected services including sketchybar, yabai, skhd, and rift can be automatically restarted and verified to ensure the new desktop configuration takes effect immediately.

What is the best way to manage window manager and desktop dotfiles across multiple macOS systems?

Managing dotfiles across systems is best handled by centralizing source configurations in ~/.local/share/chezmoi and using chezmoi apply to propagate updates to local paths, keeping window manager settings and editor configs consistent across machines.

Why does editing ~/.config directly cause inconsistency when using chezmoi?

Editing ~/.config directly bypasses the chezmoi source state, causing inconsistency because chezmoi apply will overwrite local changes with the source files from ~/.local/share/chezmoi on the next sync.

Does chezmoi apply support restarting macOS tiling window manager services?

Yes, applying chezmoi dotfiles includes restarting and verifying affected macOS desktop services like yabai, skhd, and sketchybar, ensuring tiling window manager configurations load correctly after updates.