diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-16 18:37:33 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-16 18:37:33 +0200 |
| commit | 7c99dbace31d9694e29bdf69f502f2add1968fda (patch) | |
| tree | 0c018e51bf17611ca5ee7aa1825603ff7c41f901 | |
| parent | f4f80e62c997dbe185337aa1a18509b125759875 (diff) | |
| download | dots-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>
| -rwxr-xr-x | dot-backup.sh | 7 |
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 |
