From e7a07e24938a6d6db0cbf7b6eda751bf291cc1f1 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 23 May 2014 16:34:51 +0200 Subject: [PATCH] emptytrash alias --- aliases | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aliases b/aliases index f29b5d8..30dc27c 100644 --- a/aliases +++ b/aliases @@ -16,6 +16,10 @@ alias update='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup # Recursively delete `.DS_Store` files alias cleanup="find . -type f -name '*.DS_Store' -ls -delete" +# Empty the Trash on all mounted volumes and the main HDD +# Also, clear Appleā€™s System Logs to improve shell startup speed +alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl" + # Show/hide hidden files in Finder alias show="defaults write com.apple.Finder AppleShowAllFiles -bool TRUE && killall Finder" alias hide="defaults write com.apple.Finder AppleShowAllFiles -bool FALSE && killall Finder" \ No newline at end of file