Package-oriented dotfile manager: reproducible across machines, with reviewable two-way sync.
- Two-way sync with merge: settle drift between your repo and your machine file by file, with a three-way merge
- Review before write: every change is a diff you approve
- Packages, not loose files: profiles, templates, and dependencies
- System files too: escalates privileges only when needed
workflow = reconcile(derive(intent), host)
- intent: packages, profiles, and variables in your repo
- derive: resolve packages and render templates into concrete files
- host: the live machine
- reconcile:
sync— push, pull, or merge each difference
Needs uv and git, on a UNIX-like system (dotman follows XDG paths).
uv tool install git+https://github.com/ewgdg/dotman.git
dotman doctor # check config, repo paths, and dependenciesClone the repo to try the bundled example under examples/repo/:
git clone https://github.com/ewgdg/dotman.git ~/projects/dotman
mkdir -p ~/.config/dotman
cat > ~/.config/dotman/config.toml <<'EOF'
[repos.example]
path = "~/projects/dotman/examples/repo"
order = 10
EOFTrack and push one simple package. This writes the example note to ~/.config/dotman-example/note.txt:
dotman track example:note@basic
dotman push --dry-run
dotman pushEdit the live note, then let sync bring the change back into the repo:
echo "edited on this machine" >> ~/.config/dotman-example/note.txt
dotman sync example:noteFor a larger real-world example repo, see ewgdg/dotfiles.
sync compares every tracked target between the repo and the live system, then lets you settle each difference on one review screen.
- Per-target choice: Use repository, Use live, or Merge.
- Three-way merge: dotman remembers the last state both sides agreed on, so Merge knows which side changed.
- What you review is what gets written: dotman reads everything once, up front.
- Nothing written until you confirm: open any row for its diff, edit the outcome, then confirm.
- Scriptable:
--dry-run,--json, and--no-confirmfor previews and automation.
push (repo → live) and pull (live → repo) remain as one-way shortcuts on the same screen.
dotman sync
dotman sync example:note
dotman --json --no-confirm sync --dry-run- Packages: group dotfiles and system files into reusable packages with dependencies and profiles.
- Tracking:
dotman track/untrackremember what this machine manages, sosync,push, andpullneed no arguments. - Authoring:
dotman add ~/.gitconfig example:gitdrafts a package target from a live file;dotman editopens package, target, or config sources in your editor. - Templates: render and capture files per target, for example Jinja with patch capture.
- Snapshots: live files are snapshotted before dotman overwrites them; roll back with
dotman restore latest. - Short names: type part of a name and dotman finds it, asking only when it is ambiguous.
User guides:
- Sync lifecycle and Sync Bases:
docs/sync.md - CLI reference:
docs/cli.md - User config:
docs/config.md - Repository configuration:
docs/repository.md - Template targets:
docs/templates.md
Contributors:
- Architecture:
docs/code-structure.md - Domain vocabulary:
GLOSSARY.md
Agents: install the dotman skill with npx skills add ewgdg/dotman -g.