aboutsummaryrefslogtreecommitdiffstats
path: root/dot-backup.sh
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-16 18:37:33 +0200
committerDanilo M. <danix@danix.xyz>2026-06-16 18:37:33 +0200
commit7c99dbace31d9694e29bdf69f502f2add1968fda (patch)
tree0c018e51bf17611ca5ee7aa1825603ff7c41f901 /dot-backup.sh
parentf4f80e62c997dbe185337aa1a18509b125759875 (diff)
downloaddots-backup-7c99dbace31d9694e29bdf69f502f2add1968fda.tar.gz
dots-backup-7c99dbace31d9694e29bdf69f502f2add1968fda.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'dot-backup.sh')
-rwxr-xr-xdot-backup.sh7
1 files changed, 7 insertions, 0 deletions
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