From b0c2aee67939c65be6ff273f7c636871772a32c4 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Wed, 8 Feb 2012 23:18:29 +0100 Subject: .aliases: Make `emptytrash` clear Apple System Logs This results in a faster shell launch. I just deleted 5.1 MB of logs and my shell startup time went from about 3 seconds to 3 milliseconds (or so it feels). --- .aliases | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.aliases') diff --git a/.aliases b/.aliases index 8ecfdd7..f81f284 100644 --- a/.aliases +++ b/.aliases @@ -62,7 +62,8 @@ alias fs="stat -f \"%z bytes\"" alias rot13='tr a-zA-Z n-za-mN-ZA-M' # Empty the Trash on all mounted volumes and the main HDD -alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash" +# 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" -- cgit v1.2.3