diff options
author | David Runge <david.runge@frqrec.com> | 2013-12-31 14:19:23 +0100 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2013-12-31 14:19:23 +0100 |
commit | 931c8711d64b50c240c5cf1079480094dbde9ff1 (patch) | |
tree | 330d282d31afdf14412a60569d87e86603bcae9b /bin/rmcache | |
parent | d9fd1d6971d8b3d71a0f1556a3b5d29ea6641ac2 (diff) | |
download | dotfiles-931c8711d64b50c240c5cf1079480094dbde9ff1.tar.gz dotfiles-931c8711d64b50c240c5cf1079480094dbde9ff1.tar.bz2 dotfiles-931c8711d64b50c240c5cf1079480094dbde9ff1.tar.xz dotfiles-931c8711d64b50c240c5cf1079480094dbde9ff1.zip |
Adding new scripts from /usr/local/bin and updating backup-profiles and autostart
Diffstat (limited to 'bin/rmcache')
-rwxr-xr-x | bin/rmcache | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/bin/rmcache b/bin/rmcache new file mode 100755 index 0000000..463ec10 --- /dev/null +++ b/bin/rmcache @@ -0,0 +1,31 @@ +#!/bin/bash + +USERDIR=$1 + +echo "rmcache cleaning up: $USERDIR" + +caches=".cache/chromium" +## take care of the whitespace! +caches+=" .config/chromium/Default/*Index*" +caches+=" .thumbnails" +caches+=" .opera/cache4" +caches+=" .opera/cache" +caches+=" .java/deployment/cache" +caches+=" .local/share/Trash" +caches+=" .gnome2/epiphany/mozilla/epiphany/Cache" +caches+=" .adobe/Acrobat/*/Cache" +caches+=" .adobe/Acrobat/*/Temp" +caches+=" .macromedia/Flash_Player/*" +caches+=" .adobe/Flash_Player/AssetCache" +caches+=" .java/deployment/cache" + +pushd $USERDIR > /dev/null + +for cache in $caches +do + echo "removing $cache" + rm -Rf "$cache" + [ $? -eq 0 ] || exit 1 +done + +popd > /dev/null |