diff options
Diffstat (limited to 'macos/clean.sh')
-rwxr-xr-x | macos/clean.sh | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/macos/clean.sh b/macos/clean.sh index a50ee52..fe29bdf 100755 --- a/macos/clean.sh +++ b/macos/clean.sh @@ -1,9 +1,19 @@ #!/bin/bash -sudo find /var/log/ -type f -exec rm -f {} \; -sudo rm -f /Library/Logs/DiagnosticReports/* - rm -f ~/Library/Application Support/CrashReporter/* +rm -rf ~/Library/Logs/DiagnosticReports/* +rm -rf ~/Library/Logs/* + rm -f ~/.bash_sessions/* +# probably good idea to have all apps closed and reboot once purged +rm -rf ~/Library/Caches/* + +# per user cache files +sudo rm -rf /var/folders/* +sudo rm -rf /var/db/diagnostics/* + +sudo rm -rf /Library/Logs/* +sudo find /var/log/ -type f -exec rm -f {} \; + exit 0 |