diff --git a/.gitignore b/.gitignore index 311f121..297321d 100644 --- a/.gitignore +++ b/.gitignore @@ -28,4 +28,5 @@ Temporary Items .apdisk .env -.idea \ No newline at end of file +.idea +.vscode \ No newline at end of file diff --git a/README.md b/README.md index ad3181a..1fdefd4 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,10 @@ A cleanup script for macOS that runs the following tasks: * Remove Lunar Client logs and cache * Remove Wget logs and hosts * Clear Bash/ZSH history +* Removes Cacher logs +* Deletes Android caches +* Clears Gradle caches +* Deletes Kite logs ## Install Automatically @@ -87,12 +91,6 @@ FLAGS: -n no brew updates ``` -Clean up without homebrew updates: - -``` -$ mac-cleanup -n -``` - ## Contributors ### Code Contributors diff --git a/mac-cleanup b/mac-cleanup index e06adbd..5411cc4 100755 --- a/mac-cleanup +++ b/mac-cleanup @@ -118,11 +118,14 @@ msg 'Clearing System Cache Files...' sudo rm -rfv /Library/Caches/* &>/dev/null sudo rm -rfv /System/Library/Caches/* &>/dev/null sudo rm -rfv ~/Library/Caches/* &>/dev/null +sudo rm -rfv /private/var/folders/bh/*/*/*/* &>/dev/null msg 'Clearing System Log Files...' sudo rm -rfv /private/var/log/asl/*.asl &>/dev/null sudo rm -rfv /Library/Logs/DiagnosticReports/* &>/dev/null +sudo rm -rfv /Library/Logs/CreativeCloud/* &>/dev/null sudo rm -rfv /Library/Logs/Adobe/* &>/dev/null +sudo rm -fv /Library/Logs/adobegc.log &>/dev/null rm -rfv ~/Library/Containers/com.apple.mail/Data/Library/Logs/Mail/* &>/dev/null rm -rfv ~/Library/Logs/CoreSimulator/* &>/dev/null @@ -238,6 +241,35 @@ msg 'Clearing Bash/ZSH history...' rm -fv ~/.bash_history &>/dev/null rm -fv ~/.zhistory &>/dev/null +# Deletes Cacher logs +# I dunno either +# -Astro +if [ -d ~/.cacher ]; then + msg 'Deleting Cacher logs...' + rm -rfv ~/.cacher/logs +fi + +# Deletes Android (studio?) cache +# -Astro +if [ -d ~/.android ]; then + msg 'Deleting Android cache...' + rm -rfv ~/.android/cache +fi + +# Clears Gradle caches +# -Astro +if [ -d ~/.gradle ]; then + msg 'Clearing Gradle caches...' + rm -rfv ~/.gradle/caches +fi + +# Deletes Kite Autocomplete logs +# -Astro +if [ -d ~/.kite ]; then + msg 'Deleting Kite logs...' + rm -rfv ~/.kite/logs +fi + if type "brew" &>/dev/null; then if [ "$update" = true ]; then msg 'Updating Homebrew Recipes...'