From 6ccd7ca2245b1d49c9a0583604a1dc67fb4b620f Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 6 May 2026 10:10:22 +0200 Subject: Update CLAUDE.md to reflect auto-commit and config vars Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'CLAUDE.md') diff --git a/CLAUDE.md b/CLAUDE.md index c55bd86..e148276 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -20,7 +20,7 @@ No build step. No tests. No deps beyond bash + rsync + git. 1. **Setup** — ensures `$DEFAULT_OUTPUT_DIR` exists with `home/` and `system/` subdirs; initializes git if needed; writes `lastupdate` timestamp 2. **Copy loop** — iterates `DOTFILES` array; paths starting with `/` go to `system/`, all others go to `home/`; uses `rsync -a` for both files and directories -3. **Stage** — `git add .` in `$DEFAULT_OUTPUT_DIR`; user must commit/push manually +3. **Commit** — `git add .` + auto-commits with timestamp message in `$DEFAULT_OUTPUT_DIR`; optionally pushes with `--push` ## Key Variables @@ -28,8 +28,10 @@ No build step. No tests. No deps beyond bash + rsync + git. |---|---|---| | `DEFAULT_OUTPUT_DIR` | `~/Programming/GIT/my-dotfiles` | Where backups land | | `DOTFILES` | array in script | What gets backed up | +| `GIT_REMOTE` | _(unset)_ | Remote URL; required for `--push` | +| `GIT_BRANCH` | current branch | Branch to push to | -To change backup destination, edit `DEFAULT_OUTPUT_DIR` at the top of the script. A commented-out `/tmp/` alternative is already there for testing. +Set `GIT_REMOTE` and `GIT_BRANCH` in `~/.config/dot-backup/config`. To change backup destination, edit `DEFAULT_OUTPUT_DIR` at the top of the script. ## Adding Dotfiles -- cgit v1.2.3