Redirect Dev-Tool Storage Under ~/dev#10
Draft
iain wants to merge 2 commits into
Draft
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.