From 7c99dbace31d9694e29bdf69f502f2add1968fda Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 16 Jun 2026 18:37:33 +0200 Subject: feat: add SUGGEST_IGNORE default skip list Add guarded default for SUGGEST_IGNORE array containing 16 common untracked basenames (.cache, .local, .git, .ssh, .gnupg, .Trash, .pki, .nv, .mozilla, .thunderbird, .npm, .cargo, .rustup, .java, .dbus, .config). User can override in config file - ${SUGGEST_IGNORE+set} guard ensures config values win. Co-Authored-By: Claude Opus 4.8 --- dot-backup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot-backup.sh b/dot-backup.sh index 567d6c8..2ffdbcc 100755 --- a/dot-backup.sh +++ b/dot-backup.sh @@ -46,6 +46,13 @@ if [[ -f "$CONFIG_FILE" ]]; then source "$CONFIG_FILE" fi +# Basenames skipped by --suggest. User may override in config. +if [[ -z "${SUGGEST_IGNORE+set}" ]]; then + SUGGEST_IGNORE=(.cache .local .git .ssh .gnupg .Trash .pki .nv \ + .mozilla .thunderbird .npm .cargo .rustup .java \ + .dbus .config) +fi + # Flags DRY_RUN=false VERBOSE=false -- cgit v1.2.3