Skip to content

Commit c9db8f5

Browse files
authored
Merge pull request #85 from AstroOrbis/main
Resolves part of #84
2 parents 22e80bc + 49c1cd9 commit c9db8f5

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ A cleanup script for macOS that runs the following tasks:
2121
* Cleanup composer cache
2222
* Cleanup Dropbox cache
2323
* Remove PhpStorm logs
24+
* Remove Minecraft logs and cache
25+
* Remove Steam logs and cache
2426

2527
## Install Automatically
2628

mac-cleanup

100644100755
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,30 @@ if type "composer" &>/dev/null; then
184184
composer clearcache &>/dev/null
185185
fi
186186

187+
# Deletes Steam caches, logs, and temp files
188+
# -Astro
189+
if [ -d ~/Library/Application\ Support/Steam/ ]; then
190+
msg 'Clearing Steam Cache, Log, and Temp Files...'
191+
rm -rfv ~/Library/Application\ Support/Steam/appcache &>/dev/null
192+
rm -rfv ~/Library/Application\ Support/Steam/depotcache &>/dev/null
193+
rm -rfv ~/Library/Application\ Support/Steam/logs &>/dev/null
194+
rm -rfv ~/Library/Application\ Support/Steam/steamapps/shadercache &>/dev/null
195+
rm -rfv ~/Library/Application\ Support/Steam/steamapps/temp &>/dev/null
196+
rm -rfv ~/Library/Application\ Support/Steam/steamapps/download &>/dev/null
197+
fi
198+
199+
# Deletes Minecraft logs
200+
# -Astro
201+
if [ -d ~/Library/Application\ Support/minecraft ]; then
202+
msg 'Clearing Minecraft Cache and Log Files...'
203+
rm -rfv ~/Library/Application\ Support/minecraft/logs &>/dev/null
204+
rm -rfv ~/Library/Application\ Support/minecraft/crash-reports &>/dev/null
205+
rm -rfv ~/Library/Application\ Support/minecraft/webcache &>/dev/null
206+
rm -rfv ~/Library/Application\ Support/minecraft/webcache2 &>/dev/null
207+
rm -rfv ~/Library/Application\ Support/minecraft/crash-reports &>/dev/null
208+
rm -rfv ~/Library/Application\ Support/minecraft/*.log &>/dev/null
209+
fi
210+
187211
if type "brew" &>/dev/null; then
188212
if [ "$update" = true ]; then
189213
msg 'Updating Homebrew Recipes...'

0 commit comments

Comments
 (0)