Skip to content

Redirect Dev-Tool Storage Under ~/dev#10

Draft
iain wants to merge 2 commits into
mainfrom
xdg-dev-storage
Draft

Redirect Dev-Tool Storage Under ~/dev#10
iain wants to merge 2 commits into
mainfrom
xdg-dev-storage

Conversation

@iain

@iain iain commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Microsoft Defender (managed, can't be disabled) scans every file our builds touch — millions of filesystem ops that peg the CPU and push the machine into swap. Endpoint security agreed to a single low-risk exclusion of /Users/*/dev, so this points the XDG base dirs, and the tool caches that ignore XDG (npm, pnpm store, cargo, rustup, go, uv, bundler), under ~/dev while keeping config in ~/.config. A LaunchAgent exports the same vars into the GUI session so apps launched outside the shell (IDEs, Podman Desktop) stay under the exclusion too.

iain added 2 commits July 3, 2026 14:40
So a single Microsoft Defender exclusion of /Users/*/dev covers all the build churn instead of scanning it and pegging the CPU.
Shell vars in config.fish don't reach apps launched from the Dock (IDEs, Podman Desktop), so their build churn would escape the /Users/*/dev exclusion. install.rb generates the per-machine plist and bootstraps it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant