Skip to content

Releases

tm-exclusions v1.4.2

Choose a tag to compare

@my-housekeeper my-housekeeper released this 05 Dec 22:27
v1.4.2
eca14b4

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 a tmutil isexcluded check. The GIF lives in docs/assets/demo.gif and is copied into _site/assets/ by scripts/build-site.sh. Regenerated with docs/demo/generate.sh (sources and notes in docs/demo/).
  • The website has install commands and an English version (#179): a Homebrew install and --dry-run block opens the page. The French (/) and English (/en/) pages are generated by scripts/build-site.sh from 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-site is part of make check, and tests/test_site_build.sh part of make test. Shared links to the site show a preview image, docs/assets/social-preview.png (#185).
  • Maintainer and security documents (#198): MAINTAINERS.md lists who can access sensitive project resources and their roles, docs/THREAT_MODEL.md describes the threat model and docs/DEPENDENCIES.md the dependency policy. SECURITY.md links to them, and .vex/tm-exclusions.openvex.json records, 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, a du per .app) is no longer collected or printed by default. Add --inventory, or setting|inventory|true in a config file, to get it as before (the flag always enables it; TM_EXCLUSIONS_SKIP_INVENTORY=1 still wins). The saved report keeps the section heading with one line saying how to enable it, interactive runs print no inventory block, and no du per application, brew list or PATH scan runs, so default runs are faster (brew --cache still runs on every run for cache discovery, outside the inventory). setting|inventory accepts true/1/yes and false/0/no (an invalid value warns and is ignored; scripts/check-conf.sh validates it too). Option A of the issue; the Opportunities idea (option B) is not part of this change. English and French --help list the new flag. Covered by tests/test_apps_inventory.sh, tests/test_path_inventory.sh and tests/smoke.bats-like.sh.
  • The report splits disk usage by exclusion status: Disk usage total: 174.8G summed the size of every touched path, including those whose exclusion was blocked or failed (so not excluded), next to a Space excluded: 32.5M that 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-run and --report-only), New this run: (the former Space excluded, same value; still labelled simulated or needing exclusion in --dry-run and --report-only) and Under 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. --uninstall no longer prints a size total. English and French labels are aligned.
  • --tmux stacks 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 keep rule. Smoke tests cover nested matches and a lowercase contents directory with Info.plist.
  • Test suites run under the pinned /bin/bash even with Homebrew bash first on PATH (Bash 3.2 on macOS; the system bash on Linux, so Linux CI does not check 3.2): the Makefile exports a bash symlink to it first in PATH for test runs, so every bash the 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

  • --version and the report header no longer rewrite .git/index (#171): git describe --dirty refreshes the index and writes it back, even with GIT_OPTIONAL_LOCKS=0, so a read-only command modified the source checkout (and a sudo run could leave .git/index owned by root). The build info now comes from git describe without --dirty plus git status --porcelain --untracked-files=no, both run with --no-optional-locks, so .git/index is 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--daemon cookies). 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; if status fails (corrupt or unreadable index) the plain version is shown, as when describe --dirty failed. Covered by tests/test_version_display.sh (inode and checksum of .git/index unchanged after --version and a report run).

  • --trace completes 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_path or TM_EXCLUSIONS_REPORT) and the Desktop copy were written with the current umask (usually 0644), so other local accounts could read the list of installed apps, PATH directories and project paths. They are now created with mode 0600, and an existing file is set to 0600 before it is rewritten, including a read-only (0444) file the user owns, which was a write failure before. Covered in tests/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) keep BLOCKED. 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.0M in the verbose per-path column but 1.9M in 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_modules inside Some.app/Contents/Resources is part of the installed app and npm install cannot rebuild it. tmutil addexclusion also fails on some of these paths, which gave a persistent ERROR on every run. Apply, --dry-run and --report-only now report such a match as SKIP (inside an application bundle) in the report and the trace, count it as checked and skipped, and make no tmutil call for it. Only a real bundle counts: the path must be under <name>.app/Contents/ and <name>.app/Contents/Info.plist must exist, and both .app and Contents are matched without regard to case. A repository or folder merely named *.app is still processed. --uninstall is unchanged, so it still removes exclusions added by earlier versions. Covered in tests/smoke.bats-like.sh.

  • The ERROR line shows why tmutil addexclusion failed: the report, the log and the trace now append the one-line tmutil error text, for example Error 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 from Errors. 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 as SKIP <path> (Pruning (skipping scan of):), filed under "Uncategorized" and not counted anywhere distinct. They now read PRUNE <path> (scan skipped, not an exclusion), sit under a dedicated "Prune zones" category with the covering rule's provenance, and are counted by a new Prune zones: line in the report header and the console. Skipped: is unchanged. Tests that pinned the old SKIP … Pruning format n...

Read more

tm-exclusions v1.4.1

Choose a tag to compare

@my-housekeeper my-housekeeper released this 28 Nov 23:11
v1.4.1
acc1f04

Fixes

  • A lost tmux client no longer leaves a work directory behind: stopping the interface removed the session with kill-session and kill-server back to back. The server then kills the pane processes outright, so the inner run never ran its traps and its own tm_exc_work.* directory stayed in TMPDIR (with the scan files) after the terminal was closed mid-run. tmux_cleanup now sends TERM to 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 once tmux.rc is published (a dead pane's pid may already belong to another process). Covered by the new "lost client mid-run" scenario in tests/test_tmux_ui.sh.

  • --tmux no 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 in list-clients, and then never draws the two panes, so the interface stayed empty from start to finish with no error, and --tmux looked like a run that output nothing. The client now gets a read-write handle (<> on the same device), and its stderr goes to TMP_DIR/tmux_attach.err instead of /dev/null; when the client fails while the run is still going, the first stderr line is reported next to MSG_TMUX_ATTACH_LOST. The /dev/tty fallback (rejected by tmux 3.8) is dropped: without a usable device the client runs on the inherited stdin and fails loudly. Covered by tests/test_tmux_ui.sh, which now checks that the attach client's stdin is O_RDWR and, on the real-tmux scenario, that the interface is actually drawn in the terminal.

tm-exclusions v1.4.0

Choose a tag to compare

@my-housekeeper my-housekeeper released this 28 Nov 12:37
1d48c4b

Fixes

  • A keep rule 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.

  • --add preserves the last line of a configuration file without a final newline. A trailing slash on a prune rule preserves its directory boundary.

  • A missing default catalog stops the run and appears in the report. Status checks read the leading tmutil marker 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 ~/.config that is a file), the first-run helper printed Created default custom config although nothing was written, and leaked the shell's raw No such file or directory (untranslated). It now reports Could not create the default custom config: (new MSG_CONFIG_CREATE_FAILED, en/fr) and the run continues on the built-in catalog; --init exits 1 with the same message instead of a raw mkdir error. write_custom_config_if_absent returns 2 when the file could not be written. Covered by tests/test_home_edge_cases.sh.

  • A newline in a directory name no longer sends a relative path to tmutil: the scan reads find output line by line, so $HOME/x<NL>b/node_modules reached the classifier as $HOME/x and b/node_modules; the second line, a path relative to the current directory, was matched, checked and (outside --dry-run) excluded against whatever b/node_modules the 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 by tests/test_home_edge_cases.sh.

  • A $HOME containing & no longer corrupts the catalog on Bash 5.2+: the loader expands $HOME with ${var//\$HOME/$HOME}, and since Bash 5.2 an unquoted & in that replacement stands for the matched text (patsub_replacement), so /Users/R&D turned 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 by tests/test_home_edge_cases.sh.

  • Accept --lang=en and --lang=fr, and allow language flags after the three --add operands.

  • Reject --force without --uninstall and the combination of --uninstall with --report-only before scanning.

  • --add rejects empty targets and directory patterns containing / before appending a rule.

  • Hugging Face and Claude VM exclusions only take regenerable data: ~/.cache/huggingface was excluded as a whole, taking the login token and user assets out of backups; only hub/ and xet/ ship now. Library/Application Support/Claude/vm_bundles is narrowed to claudevm.bundle/rootfs.img, so sessiondata.img stays backed up (a keep rule 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/plugins is no longer excluded: the JetBrains/*/plugins glob also matched JetBrains Toolbox's own plugins directory, 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 on Toolbox/plugins is 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 isexcluded is now read unprivileged, so --dry-run and --report-only never escalate; an unreadable status is still an error (exit 2), never silently "included". The privileged check moved to the add/remove branches of process_path(), where a mutation outside $HOME needs 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.

  • Pods and .output patterns only match real project directories: both names are generic. Pods is now excluded only next to a Podfile or Podfile.lock, .output only when it holds the Nitro build marker nitro.json. Directories excluded by an earlier run are not re-included by apply; --uninstall still removes them, or use tmutil removeexclusion <path>.

  • The report no longer runs tmutil listexclusions: that verb does not exist (tmutil only knows addexclusion, removeexclusion and isexcluded), so the call exited 64 and the report section always read status: failed (exit 64) on a real Mac. The section, its MSG_REPORT_TMLIST_* strings and the --dry-run read-only lookup of that verb are removed; the per-path status lines are unchanged and --dry-run only calls isexcluded. Covered by tests/test_end_banner.sh, tests/test_safety.sh and tests/smoke.bats-like.sh.

  • The .gradle pattern no longer excludes the Gradle user home: pattern|.gradle matched ~/.gradle itself, taking gradle.properties (signing credentials, tokens) and init.d scripts out of backups, although the static rules deliberately target only caches/ and wrapper/. A .gradle directory is now excluded only next to build.gradle(.kts), settings.gradle(.kts) or gradlew. ~/.gradle itself is never matched, even when $HOME holds one of these files. A ~/.gradle exclusion left by an earlier run is dropped on the next apply or --uninstall (--dry-run reports it); apply leaves it alone when you exclude ~/.gradle yourself with a path rule, and a keep rule below a retired path (for example keep|$HOME/.gradle/gradle.properties) no longer blocks the removal — this also fixes the same case for the retired CoreSimulator parent.

  • venv and virtualenv patterns only match real environments: these names also belong to source trees (CPython's Lib/venv, the virtualenv package, the oh-my-zsh virtualenv plugin). A match now needs pyvenv.cfg or bin/activate inside it. Look-alike directories (and non-project .gradle directories) excluded by an earlier run are not re-included by apply, which cannot tell them from exclusions you set yourself: --uninstall still removes them, or use tmutil removeexclusion <path>.

  • No temporary file left by a signal between mktemp and its registration (#92): a SIGINT/SIGTERM/SIGHUP arriving after mktemp created a file but before register_tmp_file recorded it left a tm_exc_* file in TMPDIR. All temporary files (kept, all, scan, sorted, disk and the space journal) are now created through one helper, make_tmp_file, inside a single private work directory made once by mktemp -d (ensure_tmp_dir); around that one mktemp -d INT/TERM/HUP are switched atomically from on_signal to a recorder (the mktemp child ignores them), then the previous handlers are restored and a signal received meanwhile is replayed to them (cleanup, exit 128+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 exact tm_exc_work.XXXXXX path; TMPDIR is resolved once to its physical path (a symbolic link retargeted while mktemp runs no longer leaves the directory behind and no longer makes the run fail); a TMPDIR containing 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 by tests/test_tmp_signal.sh (make test, make lint), which suspends mktemp right after it created its entry, sends SIGTERM, SIGINT and SIGHUP and checks the exit status (143/130/129) and the absence of any tm_exc_*, and which proves that a decoy directory survives a TMPDIR containing a newline.

Performance

  • Multi-layer scan pruning (#13): the dynamic scan no longer only filters after discovery; its single find now stops descending where the post-filters would drop everything below anyway — (1) configured prune zones (-path <zone> -print -prune, all modes), (2) existing static path exclusions not blocked by a keep (-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 any keep rule exists, never for the guarded target, worktrees, site-packages patterns). The excluded paths are identical to the full traversal (same tmutil calls, same order — apply, --uninstall and keep scenarios) and the post-filters stay as a safety net. Visible change: a prune zone now yields one Pruning (skipping scan of): entry / Pruned: count / report SKIP line per zone root instead of one per nested match, since the nested matches are no longer visited. On the generated tree of scripts/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=1 restores the full traversal (measurements, rollback). Documented in docs/ARCHITECTURE.md ("Scan pruning layers"); covered by tests/test_scan_pruning.sh (parity, visited-directory assertions, guard-list sync) and scripts/measure-scan.sh (make test, make lint). tests/test_scan_single_find.sh keeps its raw-discovery equality check on the full traversal (`TM_EXCLUSIONS_NO_SCAN_P...
Read more

tm-exclusions v1.3.0

Choose a tag to compare

@my-housekeeper my-housekeeper released this 12 Sep 03:52
v1.3.0
dc90930

Build

  • make install / make uninstall: default PREFIX is $(brew --prefix)/bin when writable, otherwise /usr/local/bin. Elevation no longer uses sudo sh -c (blocked by restricted sudoers). Cascade: unprivileged install/rm when the destination is writable, else sudo /usr/bin/install (or /bin/rm) per file, else a macOS admin dialog via osascript.
  • make version prints the current tm_exclusions.sh version without running the CLI. (#43)
  • make install / make uninstall also install and remove locales/*.sh under $(SHARE_DIR)/locales/. (#16)
  • Release flow: make release and .github/workflows/auto-patch.yml no longer bump version in Formula/tm-exclusions.rb. A release's sha256 only exists after the tag is pushed, so a version-only bump made a local brew install --formula ./Formula/tm-exclusions.rb install the previous tarball under the new version. The repo formula now stays on the last published tarball (url, sha256, version moving together) and tests/test_release_logic.sh fails the build if they drift.
  • make lint also runs ShellCheck on tests/test_release_logic.sh (its printf calls now pass colour codes as %b arguments, like tests/smoke.bats-like.sh).

i18n

  • External locale files: all user-visible strings moved out of tm_exclusions.sh into locales/en.sh and locales/fr.sh, sourced at runtime by load_i18n(). resolve_locales_dir() looks at TM_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 to en/fr before 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): persist report_path (saved report file) and/or desktop_report (true/false) in custom.conf so 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_path is a file path (not a directory), matching TM_EXCLUSIONS_REPORT. #@option was not used — #@ lines stay comments reserved for category markers (#34). (#52)
  • Auto-prune .bak / .old shadow copies: after config loading, every static path|<P> rule automatically extends CONF_PRUNES with <P>.bak and <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| and prune| catalog entries are not auto-derived. config/default.conf is 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 after default.conf and custom.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 alongside default.conf: in a source checkout under config/, via make install under ${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 via brew install under $(brew --prefix)/share/tm-exclusions/. config/default.conf is unchanged. (#17)

CLI

  • Desktop report policy made explicit: the ~/Desktop copy is off by default (avoids clutter on unattended cron/launchd runs). Opt in with the new --desktop-report CLI flag or the existing TM_EXCLUSIONS_REPORT_DESKTOP=1 env var; both are equivalent. (#15)
  • Paths outside $HOME use sudo tmutil addexclusion -p / removeexclusion -p when interactive sudo or a passwordless sudo cache is available; background sudo -v refresh for long runs. Non-interactive runs without sudo -n skip those paths instead of blocking.
  • -h accepted as an alias for --help.
  • Config: expand $HOME in rule targets (same idea as legacy default.conf); optional #@… lines remain comments.
  • Dynamic scan: narrow target and worktrees matches to reduce false positives (Rust/Maven/Gradle projects; git/agent worktrees).
  • After pattern scan: apply brew --cache when brew exists; scan for large VM / container disk files under $HOME / ~/Library (excluding iCloud shortcut trees).
  • Report: host, user, version; inventory block (Applications / Homebrew / PATH stats); du summary for paths touched; append tmutil listexclusions (first 500 lines) when tmutil is 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-creates custom.conf from the --init template 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: dedupe EXTRA_PATHS; find -size +512M (portable suffix); .sparsebundle matched as directories; worktrees glob matches .git/worktrees root.
  • 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 mktemp files and clean them up deterministically on EXIT, INT (SIGINT), TERM (SIGTERM), and HUP (SIGHUP), stopping background sudo keepalive and re-raising the signal cleanly.
  • $EDITOR support with arguments: parse $EDITOR into an indexed argument array (read -r -a) in cmd_config_edit so multi-word commands (e.g. code --wait, subl -w, nano -B) execute properly without invoking eval.

Default rules

  • Re-enabled path|/private/var/folders under macOS Caches. Per-user kernel temp/caches are regenerable; privileged apply uses sudo tmutil addexclusion -p when credentials are available. (#55)
  • $HOME/Library/Developer/CoreSimulator is no longer excluded as a parent tree. The catalog now targets Caches, Temp, Volumes, and Devices so root-level simulator metadata stays in backups; comment out Devices in a local catalog copy to retain simulator device state. /Library/Developer/CoreSimulator is unchanged (system runtimes). Apply / --dry-run / --uninstall drop the retired parent tmutil exclusion 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 .old siblings). These trees are disposable duplicates of catalogued caches; pruning them stops the dynamic scan from emitting one exclusion per nested dist/node_modules without excluding the parent from Time Machine. (#25)
  • Selective Application Support developer-tool caches (#53): Cursor User/workspaceStorage and Electron caches; Antigravity / Antigravity IDE caches; auto-claude-ui venvs; Discord Cache / modules; GitKraken CLI versions; JetBrains */plugins and Toolbox apps; virtualenv tool cache; SQLTools node_modules; Zed languages / extensions / node. Parent Application Support app folders stay in backups (settings, tokens, keymaps). path targets may include glob metacharacters (*, ?, [), expanded at load time.
  • Static paths for /Applications and $HOME/Applications.
  • Default config now ships ~150 rules across 17 categories (up from 39). Path style normalized to $HOME/.... New #@CategoryName section 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/models replaces the parent $HOME/.ollama (preserves id_ed25519 and 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 duplicate tmutil addexclusion calls. (#23)
  • Report du -sk no longer aborts under set -euo pipefail when a path has unreadable children (e.g. /private/var/folders). du_size_kb() captures du independently 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...
Read more

tm-exclusions v1.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Apr 03:29
Immutable release. Only release title and notes can be modified.
v1.2.0
7378720

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.md guidance for agentic tools; expanded GitHub label reference.

v1.0.0

Choose a tag to compare

@qveys qveys released this 29 Apr 02:27
v1.0.0
  • Initial stable release.