Skip to content
xian0x5aPublic

About

Package-oriented dotfile manager: reproducible across machines, with reviewable two-way sync.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1,099 Commits

Folders and files

Repository files navigation

dotman

Package-oriented dotfile manager: reproducible across machines, with reviewable two-way sync.

dotman sync Command Deck: drifted dotfiles with per-target policy and resolution

  • 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

Design philosophy

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

Install

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 dependencies

Quick start

Clone 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
EOF

Track 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 push

Edit 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:note

For a larger real-world example repo, see ewgdg/dotfiles.

Features

Two-way sync

sync compares every tracked target between the repo and the live system, then lets you settle each difference on one review screen.

dotman sync model: push and pull move one way between repo and live; sync's Merge combines both sides with the Sync Base as ancestor

  • 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-confirm for 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

More

  • Packages: group dotfiles and system files into reusable packages with dependencies and profiles.
  • Tracking: dotman track / untrack remember what this machine manages, so sync, push, and pull need no arguments.
  • Authoring: dotman add ~/.gitconfig example:git drafts a package target from a live file; dotman edit opens 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.

Documentation

User guides:

Contributors:

Agents: install the dotman skill with npx skills add ewgdg/dotman -g.

About

Package-oriented dotfile manager: reproducible across machines, with reviewable two-way sync.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages