Repository navigation
tm-exclusions v1.4.0
Fixes
-
A
keeprule protects existing parent directories even when their spelling differs in case on a case-insensitive volume. Dynamic matches containing tabs reach Time Machine with their complete paths. -
--addpreserves the last line of a configuration file without a final newline. A trailing slash on aprunerule preserves its directory boundary. -
A missing default catalog stops the run and appears in the report. Status checks read the leading
tmutilmarker so a filename containing[Excluded]cannot change the result. -
Image discovery counts rejected newline-containing paths in the report and exit status while continuing to process valid images.
-
Retrying an existing release without changelog notes preserves its published notes and proceeds to the Homebrew tap update.
-
An unwritable configuration directory is reported, not hidden behind a success notice: with a read-only
$HOME(or a~/.configthat is a file), the first-run helper printedCreated default custom configalthough nothing was written, and leaked the shell's rawNo such file or directory(untranslated). It now reportsCould not create the default custom config:(newMSG_CONFIG_CREATE_FAILED, en/fr) and the run continues on the built-in catalog;--initexits 1 with the same message instead of a rawmkdirerror.write_custom_config_if_absentreturns 2 when the file could not be written. Covered bytests/test_home_edge_cases.sh. -
A newline in a directory name no longer sends a relative path to
tmutil: the scan readsfindoutput line by line, so$HOME/x<NL>b/node_modulesreached the classifier as$HOME/xandb/node_modules; the second line, a path relative to the current directory, was matched, checked and (outside--dry-run) excluded against whateverb/node_modulesthe cwd held. Dynamic discovery skips newline-containing paths before they enter the line-based classifier, which also prevents an absolute fragment from matching an unrelated directory. Covered bytests/test_home_edge_cases.sh. -
A
$HOMEcontaining&no longer corrupts the catalog on Bash 5.2+: the loader expands$HOMEwith${var//\$HOME/$HOME}, and since Bash 5.2 an unquoted&in that replacement stands for the matched text (patsub_replacement), so/Users/R&Dturned every rule into/Users/R$HOMED/...and silently excluded nothing. The option is now switched off at startup (ignored by Bash 3.2 and 4.x). Covered bytests/test_home_edge_cases.sh. -
Accept
--lang=enand--lang=fr, and allow language flags after the three--addoperands. -
Reject
--forcewithout--uninstalland the combination of--uninstallwith--report-onlybefore scanning. -
--addrejects empty targets and directory patterns containing/before appending a rule. -
Hugging Face and Claude VM exclusions only take regenerable data:
~/.cache/huggingfacewas excluded as a whole, taking the login token and userassetsout of backups; onlyhub/andxet/ship now.Library/Application Support/Claude/vm_bundlesis narrowed toclaudevm.bundle/rootfs.img, sosessiondata.imgstays backed up (akeeprule is documented for the whole image). Exclusions left by an older catalog on the two former parents are dropped by the retired-parent migration. -
JetBrains
Toolbox/pluginsis no longer excluded: theJetBrains/*/pluginsglob also matched JetBrains Toolbox's ownpluginsdirectory, which holds the user's installed plugin payloads and their state. The rule now lists the versioned IDE folders (IntelliJIdea2024.*,IdeaIC2024.*,PyCharm2024.*, …), so IDE plugin caches stay excluded and Toolbox keeps its data; an exclusion left onToolbox/pluginsis dropped by the migration. Other versioned folders the old glob covered (Fleet, …) keep their existing exclusion, which loses nothing. -
Read-only status checks never call
sudo:tmutil isexcludedis now read unprivileged, so--dry-runand--report-onlynever escalate; an unreadable status is still an error (exit 2), never silently "included". The privileged check moved to the add/remove branches ofprocess_path(), where a mutation outside$HOMEneeds it, and the retired-parent migration relies on the same read. -
One error per failed scan traversal instead of one per configured pattern, with
find's first filesystem diagnostic attached; partial results are kept. -
Podsand.outputpatterns only match real project directories: both names are generic.Podsis now excluded only next to aPodfileorPodfile.lock,.outputonly when it holds the Nitro build markernitro.json. Directories excluded by an earlier run are not re-included by apply;--uninstallstill removes them, or usetmutil removeexclusion <path>. -
The report no longer runs
tmutil listexclusions: that verb does not exist (tmutilonly knowsaddexclusion,removeexclusionandisexcluded), so the call exited 64 and the report section always readstatus: failed (exit 64)on a real Mac. The section, itsMSG_REPORT_TMLIST_*strings and the--dry-runread-only lookup of that verb are removed; the per-path status lines are unchanged and--dry-runonly callsisexcluded. Covered bytests/test_end_banner.sh,tests/test_safety.shandtests/smoke.bats-like.sh. -
The
.gradlepattern no longer excludes the Gradle user home:pattern|.gradlematched~/.gradleitself, takinggradle.properties(signing credentials, tokens) andinit.dscripts out of backups, although the static rules deliberately target onlycaches/andwrapper/. A.gradledirectory is now excluded only next tobuild.gradle(.kts),settings.gradle(.kts)orgradlew.~/.gradleitself is never matched, even when$HOMEholds one of these files. A~/.gradleexclusion left by an earlier run is dropped on the next apply or--uninstall(--dry-runreports it); apply leaves it alone when you exclude~/.gradleyourself with apathrule, and akeeprule below a retired path (for examplekeep|$HOME/.gradle/gradle.properties) no longer blocks the removal — this also fixes the same case for the retired CoreSimulator parent. -
venvandvirtualenvpatterns only match real environments: these names also belong to source trees (CPython'sLib/venv, thevirtualenvpackage, the oh-my-zshvirtualenvplugin). A match now needspyvenv.cfgorbin/activateinside it. Look-alike directories (and non-project.gradledirectories) excluded by an earlier run are not re-included by apply, which cannot tell them from exclusions you set yourself:--uninstallstill removes them, or usetmutil removeexclusion <path>. -
No temporary file left by a signal between
mktempand its registration (#92): a SIGINT/SIGTERM/SIGHUP arriving aftermktempcreated a file but beforeregister_tmp_filerecorded it left atm_exc_*file inTMPDIR. All temporary files (kept,all,scan,sorted,diskand the space journal) are now created through one helper,make_tmp_file, inside a single private work directory made once bymktemp -d(ensure_tmp_dir); around that onemktemp -dINT/TERM/HUPare switched atomically fromon_signalto a recorder (themktempchild ignores them), then the previous handlers are restored and a signal received meanwhile is replayed to them (cleanup, exit128+n), so no signal is lost and there is no window without a handler. The directory is removed with everything in it by the cleanup, only by its exacttm_exc_work.XXXXXXpath;TMPDIRis resolved once to its physical path (a symbolic link retargeted whilemktempruns no longer leaves the directory behind and no longer makes the run fail); aTMPDIRcontaining a newline or other control character falls back to/tmp(the work path used to be split at the newline, so the cleanup could recursively remove another existing directory). Works under Bash 3.2 and 5. Covered bytests/test_tmp_signal.sh(make test,make lint), which suspendsmktempright after it created its entry, sends SIGTERM, SIGINT and SIGHUP and checks the exit status (143/130/129) and the absence of anytm_exc_*, and which proves that a decoy directory survives aTMPDIRcontaining a newline.
Performance
- Multi-layer scan pruning (#13): the dynamic scan no longer only filters after discovery; its single
findnow stops descending where the post-filters would drop everything below anyway — (1) configuredprunezones (-path <zone> -print -prune, all modes), (2) existing staticpathexclusions not blocked by akeep(-path <path> -prune, not in--uninstall), (3) below a directory already matched by a pattern without a match guard (-name <p> -print -prune; not in--uninstall, off when anykeeprule exists, never for the guardedtarget,worktrees,site-packagespatterns). The excluded paths are identical to the full traversal (sametmutilcalls, same order — apply,--uninstallandkeepscenarios) and the post-filters stay as a safety net. Visible change: a prune zone now yields onePruning (skipping scan of):entry /Pruned:count / reportSKIPline per zone root instead of one per nested match, since the nested matches are no longer visited. On the generated tree ofscripts/measure-scan.sh(4 933 directories) the scan evaluates 108 instead of 2 933 directories and runs in ~1.2 s instead of ~11 s with Bash 3.2.TM_EXCLUSIONS_NO_SCAN_PRUNE=1restores the full traversal (measurements, rollback). Documented indocs/ARCHITECTURE.md("Scan pruning layers"); covered bytests/test_scan_pruning.sh(parity, visited-directory assertions, guard-list sync) andscripts/measure-scan.sh(make test,make lint).tests/test_scan_single_find.shkeeps its raw-discovery equality check on the full traversal (TM_EXCLUSIONS_NO_SCAN_PRUNE=1) and now also asserts the pruned traversal never discovers a match outside the per-pattern reference. - Single-pass dynamic scan (#50):
scan_dynamic_patterns()now walks$HOMEwith one consolidatedfind—find "$HOME" -maxdepth 6 -type d \( -name p1 -o -name p2 … \)— instead of one full traversal per configured pattern, cutting repeated tree walks and I/O on large home directories. Each discovered directory is still tagged with every matching pattern, so results, ordering and post-filters (pattern_match_allowed, prune zones, kept-prefix pruning) are unchanged; no-pruneis used, so nested matches (e.g.node_modules/.pnpm/*/node_modules, needed in uninstall mode) are still discovered. Covered bytests/test_scan_single_find.sh(make test), which compares the single pass against a per-pattern reference and countsfindinvocations (1 instead of N).
Features
- XDG package caches ship by default next to their
~/.counterparts: npm (~/.cache/npm/_cacache,~/.cache/npm/_npx), pnpm (~/.local/share/pnpm/store) and Gradle (~/.local/share/gradle/caches,~/.local/share/gradle/wrapper). All are regenerable downloads. - Photos libraries are skipped during discovery:
*.photoslibrarydirectories are pruned in every mode (apply and--uninstall), like iCloudMobile Documents, so a large library is no longer walked for pattern matches. - Catalog: Homebrew Caskroom —
/opt/homebrew/Caskroomand/usr/local/Caskroom(cask payloads and install receipts, reinstallable withbrew reinstall --cask) ship by default next to theCellarrules. Like the Cellar, they hold the only copy of CLI-only casks (e.g.opfrom1password-cli): after a restore,brew reinstall --cask <name>brings them back. The report's inventory still lists installed casks. - Catalog: regenerable subtrees that were neither scanned nor excluded:
~/.bun,~/.nvmand~/.local/share/uvare prune zones whose reason saidhandled by static rules, but those static rules are opt-in, so nothing under them was excluded. The focused, regenerable parts now ship by default (~/.bun/install/cache,~/.nvm/versions/node/*/{lib,bin}— notetc/npmrc, which may hold an auth token —,~/.nvm/.cache,~/.local/share/uv/python,~/.local/share/uv/tools); the mixed roots stay opt-in and the prune reasons say what is really covered. - Catalog: new default rules —
~/.cache/uv,~/.cache/puppeteer,~/Library/pnpm/store(pnpm's default store on macOS;~/.pnpm-storeis the legacy location),/opt/homebrew/Cellar(Apple Silicon twin of/usr/local/Cellar), VS Code caches under~/Library/Application Support/Code(same five directories as Cursor), and a new Android category (~/Library/Android/sdk,~/.android/cache;~/.android/avdis opt-in). - Optional two-pane tmux interface (
--tmux) (#14): an interactive run can now display in a dedicated tmux session with two panes — the left pane is the normal progress/status view, the right pane follows the debug log (the samelog_infolines written to FD 5 throughTM_EXCLUSIONS_DEBUG_FIFO). The wrapper starts its own tmux server on a private socket path inside the run's work directory (tmux -S TMP_DIR/s, checked in bytes against the 104-byte unix-socket limit), so it never touches an existing session and no other server can already own that name; it re-execs the script with the original arguments (minus--tmux) in the left pane, so the scan, exclusions and exit code are unchanged and nothing is scanned twice.--tmuxonly activates on an interactive TTY: with--quietor redirected stdout it is ignored and the run behaves exactly as without the flag; iftmuxis missing, or the log file/new-sessioncannot be created, a stderr notice appears and the run falls back to normal (one scan, same exit status). From the moment the session exists there is no fallback: a failed log pane is reported and the run continues in one pane (the log is a regular file followed bytail -f, so a missing or closed pane never blocks the scan on a full pipe), and losing the client stops the run with status 1 rather than scanning again. The log pane is created withsplit-window -d, so it never takes the keyboard and asudopassword stays in the left pane. Config/help commands (--help,--init,--add,--list,--edit) never launch it. The client runs in the background on an explicit tty while the scriptwaits for it, so a signal interrupts that wait: cleanup (also on EXIT/INT/TERM/HUP) stops the client and kills only this run's session, server and socket immediately, instead of after the user detaches. The wrapper publishes the inner status once, as soon as the scan ends (so a detach at the closing prompt returns it instead of waiting for a second client) or with 130/143/129 when a signal arrives first; the status file is the guard (temporary file + rename, so a signal cannot leave it empty or half-written), it can never be overwritten, and the signal the parent sends while closing is ignored from the first statement of the handler, and the left pane is supervised from its creation (a signal that kills it before its traps are installed still closes the session and publishes its exit status). Script path and arguments are%q-quoted for the same bash; every other path travels through the session environment, so spaces and special characters are safe and there is no shell-injection surface. Rollback: revert the PR. Covered bytests/test_tmux_ui.sh(make test,make lint) with a stub tmux (two-pane wiring, single scan, exit-code propagation,split-windowfailure without a second scan, cleanup, SIGTERM while attached) plus an opt-in real-tmux check on a dedicated socket; the PTY-based interactive cases run on the Linux CI too (the helper usespython3), while Bash 3.2 and the real-tmux integration are only exercised locally. - Interactive end-of-run summary banner with space excluded (#44): the final summary of an interactive run (stdout is a terminal) is now a banner showing the counters (newly excluded, already excluded, skipped, missing paths, errors, blocked), the cumulative space excluded by the run in readable units (
KB/MB/GB/TB, from the sizes already measured — no extraduwalk, nested paths counted once), the saved report path and a copy-pasteabletmutil isexcluded <shell-quoted first path>verification tip (a placeholder-free example when no path was processed).--dry-runlabels the figure simulated: no exclusion is added or removed (noaddexclusion/removeexclusion); the read-only status lookups (isexcluded,listexclusions) still run;--report-onlylabels it space needing exclusion unless--dry-runis also set (the simulated label then wins); sizes that could not be read — or only partially measured becauseduexited non-zero on unreadable children, on GNU and BSD alike — yield≥ <total> (partial, unmeasured paths: N)(lower bound truncated, never rounded up; a readable path under a partially readable parent still contributes, nested paths never counted twice) orunknownwhen nothing usable was measured, never a false total; paths whose name contains a newline are counted as unmeasured without runningdu, and tabs in names no longer break the size cache, and a name ending in a newline (e.g. a linksmall<LF>) is no longer mistaken for its neighboursmall— including through an alias, a chain of links or a relative link to such a target (decided in the size computation only bysize_path_unsafe();normalize_pathand the keep/exclusion guards are unchanged).--quietnever prints the banner and its stdout gains no line (the space line stays in the saved report; it only benefits from the boundary size-formatting fix). The sameSpace excluded:line is added to the saved report and to the counters of non-quiet plain output, unlessTM_EXCLUSIONS_SKIP_DU=1or in uninstall mode. Visible changes: the interactive banner gained the missing-paths counter, and the report path line is now part of the banner instead of a separateReport saved to:line (non-interactive non-quiet output only gains theSpace excluded:counter line;--quietoutput gains no line). Sizes just below a unit boundary no longer print1024.0M(1048575K→1.0G). The figure is the sum of the sizes of the tracked paths minus overlap by path prefix (ASCII case folded, soCachethencache/Childon case-insensitive APFS count once; the folding assumes the default case-insensitive macOS volumes: on a case-sensitive volume, two rules targeting two paths that differ only by case are counted as one — an undercount), aggregated in onesort/awkpass (6000 paths in well under a second). It does not detect aliases or hard links between different paths (a link and its target, or two hard links to one file, are separate measurements), in apply mode the order of application can change the displayed lower bound for a path that inherits its parent's exclusion, and it assumes a stable directory tree during the run; it is a display value only, no exclusion,keepor uninstall decision depends on it. Detailed per-path lines stay available with--verboseand in the report. Covered bytests/test_end_banner.sh(make test,make lint). - Inventory — command-line tools across PATH (#49): the inventory now surveys the executables installed in every
$PATHdirectory, in the interactive output, the verbose output and the saved report. Standard system directories (/bin,/sbin,/usr/bin,/usr/sbin) are only counted ([sys] /usr/bin (120 binaries — omitted)); every other directory is treated as a toolchain one and gets its count plus all tool names ([dev] /opt/homebrew/bin (312 binaries):), wrapped like the Homebrew lists. Empty, relative, missing and duplicate PATH entries are ignored (first occurrence order kept); symbolic-link tools (Homebrew) count, non-executables, broken links and directory links do not; names with spaces or newlines are safe. Each directory is read in a single shell pass (nofind/ls, no fork per file). Skipped byTM_EXCLUSIONS_SKIP_INVENTORY=1and by--quiet; the existingPATH: N existing directoriesline is kept.TM_EXCLUSIONS_SYSTEM_PATHS(colon-separated) overrides the system directory list, mainly for tests. Covered bytests/test_path_inventory.sh(make test) on a fake PATH. - Inventory — installed applications with disk sizes (#47): the inventory now lists every
.appbundle found in/Applicationsand~/Applications(up to two levels deep, soUtilities/Foo.appis included and nested helper apps are not) with a readabledu -sh -Hsize (symbolic-link apps such asSafari.appare listed and measured as their target; broken links are ignored), in the interactive inventory, the verbose output and the saved report. Sizes come from a single groupedducall; names with spaces or even newlines are handled (NUL-separated end to end), an unreadable bundle shows-, and missing or empty folders print a localized notice.TM_EXCLUSIONS_SKIP_INVENTORY=1skips it. The/Applications (top-level)count is kept. Covered bytests/test_apps_inventory.sh(make test) on a fake HOME, fake app tree and fakedu. - Inventory: installed Homebrew casks and CLI formulae are now listed by name in column-wrapped blocks (terminal width, no trailing commas), both in interactive output and in the saved report; a friendly notice is shown when
brewis not installed, andTM_EXCLUSIONS_SKIP_INVENTORY=1still skips the block. (#48) - VM and disk image discovery (
scan_images=true): also detects hypervisor bundles.utm,.vmwarevm,.parallelsand.pvm(any size, contents pruned; akeepinside a bundle protects the whole bundle, its disks are not excluded individually),.iso/.ovafiles over 512 MiB, and VirtualBox.vboxfiles (the whole folder only when it is named after the file, never$HOME).Library/CloudStorageis pruned like iCloudMobile Documents. The 50-candidate cap and 512 MiB gate are unchanged, but duplicates and candidates under another candidate (unless protected bykeep) are dropped before the cap; in--uninstallthere is no such reduction, a cap of 200 candidates (instead of 50), a.vboxoffered both as file and as folder and bundle contents are not pruned, so disks excluded individually by older versions are still found; discovered paths keep theDiscovery:report context. (#51)
Build
-
Faster
make teston macOS. The tmux fixture wakes its client on session closure, Homebrew smoke tests measure fixture applications, and the locale validator indexes keys once per comparison. Multiple assertions on the same CLI invocation share its captured output. -
Tests: no more false green from
source <(…)under Bash 3.2 (#88): under/bin/bash3.2.57source <(command)returns 0 without defining anything, so a suite loading the CLI that way could run no assertion and still exit 0 (it passes under Bash 5, which hid the defect).tests/test_safety.shand the unit blocks oftests/smoke.bats-like.shnow load the script from a temporary file (write_functions_fileintests/test_helpers.sh, removed with the suite's temporary directory by its existing trap) and check that the expected functions exist (require_functions);test_summarynow fails any suite that ran zero assertions.tests/test_safety.shused to crash under Bash 3.2 atnormalize_pathafter 124 assertions; it now runs all 141. Covered bytests/test_loader_guard.sh(make test,make lint), which also fails if asource <(…)or. <(…)reappears intests/(its own file included),scripts/or the Makefile, written on one line, with--, or continued with a backslash anywhere; it fails closed (cannot scan <path>) when a scan target is missing,findfails or a file is unreadable; it lists files withfind -print0and never parsesfile:line:textoutput, so a checkout path containing:is handled. -
scripts/add-category.sh(#58): scaffolds a new category inconfig/default.conffrom flags (--name, repeated--add TYPE TARGET REASON) or interactive prompts on a terminal. It refuses empty fields,|/control characters/newlines, unknown types and an already existing category or rule (active or opt-in;~/xis normalized to$HOME/x, trailing slashes dropped), refuses a catalog whose insertion anchors are not recognized, inserts the#@Namesection following the file layout and bumpsEXPECTED_CATEGORY_COUNT(the single source of the category count, intests/smoke.bats-like.sh). It validates on a copy of the repository placed next to the checkout (never underTMPDIR, which the catalog excludes on macOS) withcheck-conf,check-i18n, thenmake checkunless--skip-tests, and only then overwrites the two real files in place (modes preserved) after a backup, restoring both on any failure or INT/TERM/HUP (otherwise exit 1, nothing written); duplicate detection compares~/x,$HOME/xand trailing-slash forms on both sides; every added line is re-verified;verify_added_linesis unit-tested; a second signal cannot interrupt the restore; the work copy goes under$HOMEwhen the checkout is underTMPDIR//var/folders; symbolic-link targets are refused; both files are snapshotted under the lock and the install refuses (exit 1, nothing written) if either changed since, so a lost lock can no longer cause a silent lost update; a.add-category.lockdirectory prevents concurrent edits (taken through anO_EXCLguard file.add-category.lock.guard, because somemkdirimplementations such as uutils coreutils report success when the directory already exists); end of input at a prompt aborts.--dry-runprints the diff only,--root DIRtargets another checkout. Category names are not localized, so no locale key is written. README and ARCHITECTURE no longer quote the category count. Covered bytests/test_add_category.sh(make test,make lint) on a temporary copy of the repository. -
pre-commithook (#60):.githooks/pre-commit, activated bymake setup, checks only the files staged for the commit — ShellCheck on*.sh(same options asmake lint;bash -nonlocales/*.sh),scripts/check-conf.shon*.conf— and blocks the commit on errors. Staging a locale file without its sibling prints a non-blocking reminder to runmake check-i18n. A missingshellcheckonly warns. The staged content is checked (blobs exported from the index to a temporary directory; sourced files resolve from the working tree), so a partially staged file is judged on what will be committed. NUL-safe file handling (spaces/newlines in names), works from any subdirectory and in linked worktrees; skip once withgit commit --no-verify. The automaticmakebootstrap now reports on stderr when it replaces a different localcore.hooksPath(global config untouched, silent when already.githooks) and can be skipped withTM_EXCLUSIONS_NO_HOOKS=1; anymakecall otherwise re-setscore.hooksPath, sogit config --unset core.hooksPathis not a permanent opt-out (documented in README/CONTRIBUTING). Covered bytests/test_pre_commit.sh(make test,make lint) on throwaway repositories. -
make test-summary/scripts/test-summary.sh(#59): runs everytests/*.shsuite unmodified and prints one compact line — total, passed, failed — followed by only the failed assertions with their output (a suite that crashes without aFAILline is reported with the tail of its output). Failures keep their raw output (multi-line output, context before and after theFAILline, bounded). Exit status is 0 on success, 1 otherwise (also when no suite is found);make test/make checkare unchanged. Covered bytests/test_summary.sh(make test) on fake passing, failing and crashing suites. -
make check-i18n/scripts/check-i18n.sh: locale parity checker, run as part ofmake check. It compares theMSG_*keys oflocales/en.shandlocales/fr.shand reports, withfile:line, every key missing from the other locale (exit 1); it exits 0 when the keys are in 1:1 parity. Covered bytests/test_check_i18n.sh. (#56) -
make check-conf/scripts/check-conf.sh: standalone syntax validator for.conffiles, run as part ofmake check. It reportsfile:lineerrors (exit 1) for unknown types, missing|delimiters, empty target or reason,..path traversal, typo'd or unsupported$HOME/~usage, and invalidsettingkeys/values; with no arguments it checks everyconfig/*.conf. Covered bytests/test_check_conf.sh. (#57) -
Formula/tm-exclusions.rb:url,sha256andversionrefreshed to the v1.3.0 tarball. The previoussha256did not match the v1.2.0 tarball it pointed at (93d9f89e…instead of956ac268…), sobrew install --formula ./Formula/tm-exclusions.rbfailed on a checksum mismatch. -
.github/workflows/release.yml: a missingHOMEBREW_TOKENnow fails the release run instead ofexit 0. The v1.3.0 run was green while the tap was never updated, sobrew install tm-exclusionskept serving v1.2.0.
CLI
- Category sections (
#@Category) (#46):#@<Category>lines indefault.conf,custom.confandTM_EXCLUSIONS_EXTRA_CONFnow attach thepath/pattern/keeprules below them to a category. Non-quiet runs print a══ Category ══header per category (also with-v, where individual lines are now grouped under their header), and the saved report groups itsDetails:lines under── Category ──subheadings. Rules before any marker, after a bare#@, or in a config file that defines no section use a localized default category (Uncategorized/Sans catégorie); each file starts in the default category. Custom#@MyCategorysections work incustom.conf. Covered bytests/test_categories.sh(make test). - Per-path disk size during exclusion application (#45): non-quiet runs now prefix each processed path with its formatted
du -sksize, right-aligned in a fixed 8-cell column (e.g.Applying exclusion: 1.0G ~/Library/Caches). Missing or unreadable paths show-and never fail the run. A cumulative formatted total (Disk usage total:/Usage disque total :) is added to the end-of-run summary and report counters. Each path is measured once and the report's disk-usage section reuses that measurement (DU_SIZES), so trees are never walked twice.-q/--quietprints no per-path lines, andTM_EXCLUSIONS_SKIP_DU=1disables both the column and the report section.