diff options
author | Mathias Bynens <mathias@qiwi.be> | 2012-02-08 23:18:29 +0100 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2012-02-08 23:18:29 +0100 |
commit | b0c2aee67939c65be6ff273f7c636871772a32c4 (patch) | |
tree | 45d6b5c0b97255207066089a33531d0b392a54c5 | |
parent | b569529221dbc269fbd1d5a3d1e21ac9c6d09ba0 (diff) | |
download | dotfiles-b0c2aee67939c65be6ff273f7c636871772a32c4.tar.gz dotfiles-b0c2aee67939c65be6ff273f7c636871772a32c4.tar.bz2 dotfiles-b0c2aee67939c65be6ff273f7c636871772a32c4.zip |
.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).
-rw-r--r-- | .aliases | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" |