feat: auto-generate ~/.mackup/ssr-custom.cfg for uncovered dot-dirs
Before each `ssr sync`, scan $HOME for dot-dirs/files not yet present in the Mackup backup directory and write them into ~/.mackup/ssr-custom.cfg. This covers tools like .claude, .cursor, .easymcp, .codex, .factory, and any future dot-dir without requiring the user to write manual Mackup app definitions. Curated list handles common developer tools; auto-discovery adds the rest while skipping caches, credential dirs (.ssh, .gnupg, .aws, .azure) and other volatile state. Configurable via: SSR_MACKUP_AUTODISCOVER=true (opt-out with false) SSR_MACKUP_EXTRA_PATHS="..." (space-separated $HOME-relative paths) Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -16,6 +16,14 @@ SSR_CLOUD_PROVIDER=icloud
|
||||
SSR_BACKUP_SUBDIR=BACKUP
|
||||
SSR_MACKUP_SUBDIR=Mackup
|
||||
|
||||
# Auto-discover uncovered dot-dirs in $HOME and add them to a generated
|
||||
# ~/.mackup/ssr-custom.cfg before each backup. Set to "false" to opt out.
|
||||
SSR_MACKUP_AUTODISCOVER=true
|
||||
|
||||
# Extra paths (relative to $HOME) to always include, space-separated.
|
||||
# Example: ".easymcp .my-tool .config/my-cli"
|
||||
# SSR_MACKUP_EXTRA_PATHS=""
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Homebrew behavior during `ssr sync`
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user