~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/3n3htqbv63wba

Clean up after coding agents on macOS: remove finished git worktrees and sweep stale build output (cargo targets, node_modules, DerivedData, /tmp) with two launchd jobs

0
0
main
25 lines · 685 B Raw History
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>local.sweep-agent-builds</string>
	<key>ProgramArguments</key>
	<array>
		<string>/bin/sh</string>
		<string>__HOME__/.local/bin/sweep-agent-builds</string>
	</array>
	<key>StartInterval</key>
	<integer>3600</integer>
	<key>RunAtLoad</key>
	<true/>
	<key>ProcessType</key>
	<string>Background</string>
	<key>LowPriorityIO</key>
	<true/>
	<key>Nice</key>
	<integer>10</integer>
	<key>StandardErrorPath</key>
	<string>__HOME__/Library/Logs/sweep-agent-builds.err</string>
</dict>
</plist>