Pull requests are very welcome for other unused files to clean up storage space!
Show HN: Clean Your Mac with a Script
github.com
1–10 of 21 posts
Pull requests are very welcome for other unused files to clean up storage space!
Show HN: Clean Your Mac with a Script
github.com
(in all seriousness folks, if you're gonna show HN, spend some time on your README, docs, etc).
Yep, df gonna run this rando script with such a detailed and inspiring README... (in all seriousness folks, if you're gonna show HN, spend some time on your README, docs, etc).
The main issue I'm finding is that `find` seems extremely slow at deleting things.
Why is this written for bash, which isn't getting recent changes?
Yep, df gonna run this rando script with such a detailed and inspiring README... (in all seriousness folks, if you're gonna show HN, spend some time on your README, docs, etc).
The README should be better but the script is like 100 lines or so. The main issue I'm finding is that `find` seems extremely slow at deleting things.
The script is clean and straightforward.
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.
Isn't zsh the current #!/bin/sh on MacOS? Why is this written for bash, which isn't getting recent changes?
Or, if the person is like me, they're more comfortable in Bash after years of it being the default. Hacking around in a less-familiar shell seems like a bad idea if it's optional when deleting data, regardless of what's currently the default. (I realize that zsh can execute commands with Bash syntax, that's not my point.)