aboutsummaryrefslogtreecommitdiffstats
path: root/.aliases
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2012-02-08 23:18:29 +0100
committerMathias Bynens <mathias@qiwi.be>2012-02-08 23:18:29 +0100
commitb0c2aee67939c65be6ff273f7c636871772a32c4 (patch)
tree45d6b5c0b97255207066089a33531d0b392a54c5 /.aliases
parentb569529221dbc269fbd1d5a3d1e21ac9c6d09ba0 (diff)
downloaddotfiles-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).
Diffstat (limited to '.aliases')
-rw-r--r--.aliases3
1 files changed, 2 insertions, 1 deletions
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"