Created
December 9, 2016 15:58
-
-
Save ben-p-commits/53f81d148516e0c84576e76a3c967ab6 to your computer and use it in GitHub Desktop.
Clean up typical desktop cruft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#clean up cruft on the desktop. | |
Y="\033[1;33m" | |
R="\033[0;31m" | |
G="\033[0;32m" | |
B="\033[0;34m" | |
NC="\033[0m" | |
echo "${G}Cleaning up image cruft:${R}" | |
for a in ~/Desktop/*.(png|jpg|jpeg|gif)(.N); do | |
rm -rv $a; | |
; done | |
echo "${Y}... Done!" | |
echo "${G}Cleaning up misc cruft:${R}" | |
for a in ~/Desktop/*.(|zip|dmg|pkg|tar*)(.N); do | |
rm -ri $a; | |
; done | |
echo "${Y}... Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment