|
|
|
Show HN: Clean Your Mac with a Script
(github.com)
|
|
44 points
by hkdobrev
565 days ago
|
|
I wanted to clean old temporary files and caches from my macOS with a script instead of using a shady paid app, so I created a simple script for that. Pull requests are very welcome for other unused files to clean up storage space! |
|
2) /tmp and /var/tmp are cleared on reboot. Clearing them manually is probably not worth the hassle.
3) A week is way too short as a default for DAYS_TO_KEEP. A more appropriate value might be on the order of 30 - 90 days.
4) brew doctor is purely a diagnostic tool; it doesn't perform any maintenance operations. It doesn't belong in this script.