Repository navigation
Releases
tm-exclusions v1.4.2
Documentation
- Animated terminal demo on the README and the website: a 25-second recording of
--version, a--dry-run(16 paths, 4.4G that would be excluded) and an apply, plus atmutil isexcludedcheck. The GIF lives indocs/assets/demo.gifand is copied into_site/assets/byscripts/build-site.sh. Regenerated withdocs/demo/generate.sh(sources and notes indocs/demo/). - The website has install commands and an English version (#179): a Homebrew install and
--dry-runblock opens the page. The French (/) and English (/en/) pages are generated byscripts/build-site.shfrom one template (site/src/index.template.html) and one text file per language (site/i18n/<code>.lang); the build fails on a missing, unknown or unused key.make check-siteis part ofmake check, andtests/test_site_build.shpart ofmake test. Shared links to the site show a preview image,docs/assets/social-preview.png(#185). - Maintainer and security documents (#198):
MAINTAINERS.mdlists who can access sensitive project resources and their roles,docs/THREAT_MODEL.mddescribes the threat model anddocs/DEPENDENCIES.mdthe dependency policy.SECURITY.mdlinks to them, and.vex/tm-exclusions.openvex.jsonrecords, in OpenVEX format, known findings that do not affect the released CLI.
Changes
- The report inventory is opt-in (#152): the
=== Inventory (informational) ===section (installed applications with sizes, Homebrew casks and formulae, PATH tools; about 270 lines, aduper.app) is no longer collected or printed by default. Add--inventory, orsetting|inventory|truein a config file, to get it as before (the flag always enables it;TM_EXCLUSIONS_SKIP_INVENTORY=1still wins). The saved report keeps the section heading with one line saying how to enable it, interactive runs print no inventory block, and noduper application,brew listor PATH scan runs, so default runs are faster (brew --cachestill runs on every run for cache discovery, outside the inventory).setting|inventoryacceptstrue/1/yesandfalse/0/no(an invalid value warns and is ignored;scripts/check-conf.shvalidates it too). Option A of the issue; the Opportunities idea (option B) is not part of this change. English and French--helplist the new flag. Covered bytests/test_apps_inventory.sh,tests/test_path_inventory.shandtests/smoke.bats-like.sh. - The report splits disk usage by exclusion status:
Disk usage total: 174.8Gsummed the size of every touched path, including those whose exclusion was blocked or failed (so not excluded), next to aSpace excluded: 32.5Mthat counted only the new additions. It is replaced by three lines:Excluded on disk (total):(paths really excluded: already excluded plus added by the run; only the already excluded with--dry-runand--report-only),New this run:(the formerSpace excluded, same value; still labelled simulated or needing exclusion in--dry-runand--report-only) andUnder blocked or failed rules (upper bound):(paths under a blocked or failed rule, shown only when there is one; an upper bound because a blocked rule can cover children already excluded). The detailed "Disk usage" section is unchanged.--uninstallno longer prints a size total. English and French labels are aligned. --tmuxstacks the panes: the progress/status pane is now on top and the log pane below it, both at full terminal width (split-window -v), instead of side by side. Long paths in the progress line and in the trace lines are cut less.- Application bundle skips (#158). The bundle guard already covers Electron build output (since #143). The report lists each discovered bundle match, including nested matches reached with a
keeprule. Smoke tests cover nested matches and a lowercasecontentsdirectory withInfo.plist. - Test suites run under the pinned
/bin/basheven with Homebrew bash first onPATH(Bash 3.2 on macOS; the system bash on Linux, so Linux CI does not check 3.2): the Makefile exports abashsymlink to it first inPATHfor test runs, so everybashthe suites or their children start —env, shebangs, hook internals, tmux panes — uses it. The shim dir is per-user and mode 700, and setup refuses a planted symlink, foreign owner or wrong mode. Each suite prints its own shell version and the shim target on stderr.
Fixes
-
--versionand the report header no longer rewrite.git/index(#171):git describe --dirtyrefreshes the index and writes it back, even withGIT_OPTIONAL_LOCKS=0, so a read-only command modified the source checkout (and asudorun could leave.git/indexowned by root). The build info now comes fromgit describewithout--dirtyplusgit status --porcelain --untracked-files=no, both run with--no-optional-locks, so.git/indexis never rewritten (git's own optional features, split index and fsmonitor, may still touch other files under.git, such as.git/sharedindex.*or the.git/fsmonitor--daemoncookies). The dirty flag keeps its meaning (tracked files changed or staged; untracked files ignored), and a file that was only touched is not reported as dirty. Two read-only git calls instead of one; ifstatusfails (corrupt or unreadable index) the plain version is shown, as whendescribe --dirtyfailed. Covered bytests/test_version_display.sh(inode and checksum of.git/indexunchanged after--versionand a report run). -
--tracecompletes with stderr closed on macOS Bash 3.2 (#160). The scan writes its report and keeps its normal exit status. -
Report files are private (#149): the saved report (default path,
setting|report_pathorTM_EXCLUSIONS_REPORT) and the Desktop copy were written with the current umask (usually0644), so other local accounts could read the list of installed apps,PATHdirectories and project paths. They are now created with mode0600, and an existing file is set to0600before it is rewritten, including a read-only (0444) file the user owns, which was a write failure before. Covered intests/smoke.bats-like.sh. -
Dry runs predict privilege blocks (#146): planned exclusions and removals that need unavailable sudo report
BLOCKED. When sudo is usable, the verbose terminal output and report mark the planned change with(sudo). Dry runs never prompt for sudo. -
Interactive runs prompt for sudo instead of reporting
BLOCKED(#163): the terminal check ran inside the processing loops, whose stdin is a heredoc, so it was always false and a privileged path was blocked even in a terminal. Interactivity is now decided once at startup. With a terminal and no sudo cache, the first privileged change prompts once and the keepalive covers the rest; a failed prompt blocks the remaining privileged paths without asking again. Non-interactive runs (cron, launchd, CI) keepBLOCKED. The dry run predicts the same route, marks it(sudo), and still never prompts. -
Partially readable paths contribute to the report counters (#147). The counters reuse the partial sizes shown in the Disk usage section and display a lower bound.
-
The per-path size column truncates partial sizes too (#164): a partially readable 2047 KiB path showed
2.0Min the verbose per-path column but1.9Min the Disk usage section and the counters. The column now uses the same lower bound. Complete sizes keep their rounding. -
Pattern matches inside application bundles are skipped, not excluded: a
node_modulesinsideSome.app/Contents/Resourcesis part of the installed app andnpm installcannot rebuild it.tmutil addexclusionalso fails on some of these paths, which gave a persistentERRORon every run. Apply,--dry-runand--report-onlynow report such a match asSKIP (inside an application bundle)in the report and the trace, count it as checked and skipped, and make notmutilcall for it. Only a real bundle counts: the path must be under<name>.app/Contents/and<name>.app/Contents/Info.plistmust exist, and both.appandContentsare matched without regard to case. A repository or folder merely named*.appis still processed.--uninstallis unchanged, so it still removes exclusions added by earlier versions. Covered intests/smoke.bats-like.sh. -
The
ERRORline shows whytmutil addexclusionfailed: the report, the log and the trace now append the one-linetmutilerror text, for exampleError excluding: /path (reason). Control characters (CR, LF, ESC, tab) become spaces and the text is cut at 200 characters. -
Privilege blocks have their own counter.
Blocked (privileges)counts separately fromErrors. A run with a privilege block still exits with status 1. -
Prune zones are reported as
PRUNE, under their own category: the report showed them asSKIP <path> (Pruning (skipping scan of):), filed under "Uncategorized" and not counted anywhere distinct. They now readPRUNE <path> (scan skipped, not an exclusion), sit under a dedicated "Prune zones" category with the covering rule's provenance, and are counted by a newPrune zones:line in the report header and the console.Skipped:is unchanged. Tests that pinned the oldSKIP … Pruningformat n...
tm-exclusions v1.4.1
Fixes
-
A lost tmux client no longer leaves a work directory behind: stopping the interface removed the session with
kill-sessionandkill-serverback to back. The server then kills the pane processes outright, so the inner run never ran its traps and its owntm_exc_work.*directory stayed inTMPDIR(with the scan files) after the terminal was closed mid-run.tmux_cleanupnow sendsTERMto each live pane's process group and waits up to two seconds for the session to close, so the wrapper publishes its status and the inner run cleans up before anything is removed. Skipped oncetmux.rcis published (a dead pane's pid may already belong to another process). Covered by the new "lost client mid-run" scenario intests/test_tmux_ui.sh. -
--tmuxno longer shows a blank screen for the whole run: the attach client was started with a read-only reopen of the terminal (< /dev/ttysN). Real tmux (3.8) attaches such a client, registers it inlist-clients, and then never draws the two panes, so the interface stayed empty from start to finish with no error, and--tmuxlooked like a run that output nothing. The client now gets a read-write handle (<>on the same device), and its stderr goes toTMP_DIR/tmux_attach.errinstead of/dev/null; when the client fails while the run is still going, the first stderr line is reported next toMSG_TMUX_ATTACH_LOST. The/dev/ttyfallback (rejected by tmux 3.8) is dropped: without a usable device the client runs on the inherited stdin and fails loudly. Covered bytests/test_tmux_ui.sh, which now checks that the attach client's stdin isO_RDWRand, on the real-tmux scenario, that the interface is actually drawn in the terminal.
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_P...
tm-exclusions v1.3.0
Build
make install/make uninstall: defaultPREFIXis$(brew --prefix)/binwhen writable, otherwise/usr/local/bin. Elevation no longer usessudo sh -c(blocked by restricted sudoers). Cascade: unprivilegedinstall/rmwhen the destination is writable, elsesudo /usr/bin/install(or/bin/rm) per file, else a macOS admin dialog viaosascript.make versionprints the currenttm_exclusions.shversion without running the CLI. (#43)make install/make uninstallalso install and removelocales/*.shunder$(SHARE_DIR)/locales/. (#16)- Release flow:
make releaseand.github/workflows/auto-patch.ymlno longer bumpversioninFormula/tm-exclusions.rb. A release'ssha256only exists after the tag is pushed, so a version-only bump made a localbrew install --formula ./Formula/tm-exclusions.rbinstall the previous tarball under the new version. The repo formula now stays on the last published tarball (url,sha256,versionmoving together) andtests/test_release_logic.shfails the build if they drift. make lintalso runs ShellCheck ontests/test_release_logic.sh(itsprintfcalls now pass colour codes as%barguments, liketests/smoke.bats-like.sh).
i18n
- External locale files: all user-visible strings moved out of
tm_exclusions.shintolocales/en.shandlocales/fr.sh, sourced at runtime byload_i18n().resolve_locales_dir()looks atTM_EXCLUSIONS_LOCALES_DIR(ignored as root), the repo checkout, then the installed share dirs; a missing locale file is a fatal error rather than a silent fallback. (#16) --lang: values are allowlisted toen/frbefore any locale path is built, so an untrusted value can never become a sourced filename; unsupported codes report "Unsupported language" instead of "locale files not found".
Config
- Report destination in config (
setting|key|value): persistreport_path(saved report file) and/ordesktop_report(true/false) incustom.confso unattended runs do not need CLI flags or env vars. Precedence is CLI > environment > config setting > built-in default (~/.config/tm_exclusions/last_report.txt).report_pathis a file path (not a directory), matchingTM_EXCLUSIONS_REPORT.#@optionwas not used —#@lines stay comments reserved for category markers (#34). (#52) - Auto-prune
.bak/.oldshadow copies: after config loading, every staticpath|<P>rule automatically extendsCONF_PRUNESwith<P>.bakand<P>.old. Shadow trees produced by tool reinstalls or migrations (e.g..bun.bak,.npm.bak,.cargo.bak,.pnpm-store.bak) are silently skipped during the dynamic scan without any per-suffix opt-in.pattern|andprune|catalog entries are not auto-derived.config/default.confis unchanged. (#25) TM_EXCLUSIONS_EXTRA_CONF: opt-in mechanism for power users with large cloud-sync trees. Set the env var to any config file to load it afterdefault.confandcustom.conf. A missing, non-regular-file (e.g. a directory path), or unreadable value emits a stderr warning and continues — the loader now requires both-f(regular file) and-r(readable). The example file (extra-prunes.example.conf) is installed alongsidedefault.conf: in a source checkout underconfig/, viamake installunder${SHARE_DIR}/($(PREFIX)/../share/tm-exclusions, i.e.$(brew --prefix)/share/tm-exclusions/when the Homebrew bin is writable, otherwise/usr/local/share/tm-exclusions/), and viabrew installunder$(brew --prefix)/share/tm-exclusions/.config/default.confis unchanged. (#17)
CLI
- Desktop report policy made explicit: the
~/Desktopcopy is off by default (avoids clutter on unattended cron/launchd runs). Opt in with the new--desktop-reportCLI flag or the existingTM_EXCLUSIONS_REPORT_DESKTOP=1env var; both are equivalent. (#15) - Paths outside
$HOMEusesudo tmutil addexclusion -p/removeexclusion -pwhen interactive sudo or a passwordless sudo cache is available; backgroundsudo -vrefresh for long runs. Non-interactive runs withoutsudo -nskip those paths instead of blocking. -haccepted as an alias for--help.- Config: expand
$HOMEin rule targets (same idea as legacydefault.conf); optional#@…lines remain comments. - Dynamic scan: narrow
targetandworktreesmatches to reduce false positives (Rust/Maven/Gradle projects; git/agent worktrees). - After pattern scan: apply
brew --cachewhenbrewexists; scan for large VM / container disk files under$HOME/~/Library(excluding iCloud shortcut trees). - Report: host, user, version; inventory block (Applications / Homebrew / PATH stats);
dusummary for paths touched; appendtmutil listexclusions(first 500 lines) whentmutilis available. Env:TM_EXCLUSIONS_REPORT,TM_EXCLUSIONS_REPORT_DESKTOP,TM_EXCLUSIONS_SKIP_INVENTORY,TM_EXCLUSIONS_DEBUG_FIFO. - First run of apply-like modes (and
--add/--list/--edit) auto-createscustom.conffrom the--inittemplate if missing. - Report-only: summary line for “not excluded” paths reads as action needed, not “newly excluded”; Skipped: label covers privileged skips and missing paths.
collect_post_scan_paths: dedupeEXTRA_PATHS;find -size +512M(portable suffix);.sparsebundlematched as directories;worktreesglob matches.git/worktreesroot.- Debug FIFO: open with
exec 5<>(read+write) so named pipes do not block on open.
Security / Hardening
- Signal handling and temp file cleanup: register all
mktempfiles and clean them up deterministically onEXIT,INT(SIGINT),TERM(SIGTERM), andHUP(SIGHUP), stopping background sudo keepalive and re-raising the signal cleanly. $EDITORsupport with arguments: parse$EDITORinto an indexed argument array (read -r -a) incmd_config_editso multi-word commands (e.g.code --wait,subl -w,nano -B) execute properly without invokingeval.
Default rules
- Re-enabled
path|/private/var/foldersunder macOS Caches. Per-user kernel temp/caches are regenerable; privileged apply usessudo tmutil addexclusion -pwhen credentials are available. (#55) $HOME/Library/Developer/CoreSimulatoris no longer excluded as a parent tree. The catalog now targetsCaches,Temp,Volumes, andDevicesso root-level simulator metadata stays in backups; comment outDevicesin a local catalog copy to retain simulator device state./Library/Developer/CoreSimulatoris unchanged (system runtimes). Apply /--dry-run/--uninstalldrop the retired parenttmutilexclusion when it is still present (manual equivalent:tmutil removeexclusion "$HOME/Library/Developer/CoreSimulator"). (#54)- Default prune zones now cover package-manager reinstall/migration shadow copies (
.bun.bak,.npm.bak,.yarn.bak,.pnpm-store.bak,.cargo.bak, and matching.oldsiblings). These trees are disposable duplicates of catalogued caches; pruning them stops the dynamic scan from emitting one exclusion per nesteddist/node_moduleswithout excluding the parent from Time Machine. (#25) - Selective Application Support developer-tool caches (#53): Cursor
User/workspaceStorageand Electron caches; Antigravity / Antigravity IDE caches; auto-claude-ui venvs; DiscordCache/ modules; GitKraken CLIversions; JetBrains*/pluginsand Toolboxapps; virtualenv tool cache; SQLToolsnode_modules; Zedlanguages/extensions/node. Parent Application Support app folders stay in backups (settings, tokens, keymaps).pathtargets may include glob metacharacters (*,?,[), expanded at load time. - Static paths for
/Applicationsand$HOME/Applications. - Default config now ships ~150 rules across 17 categories (up from 39). Path style normalized to
$HOME/.... New#@CategoryNamesection markers (cosmetic in 1.x; future report grouping tracked in #34). Several entries ship commented (opt-in):pattern|.cache,pattern|site-packages,path|$HOME/.docker(keeps registry credentials).$HOME/.ollama/modelsreplaces the parent$HOME/.ollama(preservesid_ed25519and chat history). Cloud-sync prunes deferred to user opt-in (#44). Parent Application Support roots stay omitted (mix of user data and caches); granular cache subdirs ship enabled (#53). (#37)
Fixed
- Dynamic scan no longer emits redundant child exclusions under an already-excluded parent. After the parent (e.g.
~/Git/<repo>/node_modules) is kept, descendants matched by the same or another pattern (e.g..pnpm/<pkg>/node_modules) are silently skipped — they're already covered transitively by the parent. Saves hundreds of lines per pnpm workspace and avoids duplicatetmutil addexclusioncalls. (#23) - Report
du -skno longer aborts underset -euo pipefailwhen a path has unreadable children (e.g./private/var/folders).du_size_kb()capturesduindependently of the formatting pipeline and keeps a partial total when one is printed. (#55, #18)
CI and automation
- Automated patch releases: new workflow (
.github/workflows/auto-patch.yml) and script (scripts/check-auto-patch.sh) to automatically apply and publish a patch...
tm-exclusions v1.2.0
CLI
- Embedded version 1.1.0 (
tm-exclusions --version).
CI and automation
- PR triage workflow: apply labels from
docs/LABELS.md(Area, Type, Status, Priority, Effort, extras); Priority labels are mutually exclusive when multiple match. - Label catalog reference in-repo (
docs/LABELS.md) with JSON rules for triage. - Dependabot for GitHub Actions; consolidated lint + smoke workflow; PR labeler and title normalization; stale bot; dependency review and CodeQL for Actions.
Docs
AGENTS.mdguidance for agentic tools; expanded GitHub label reference.