aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2015-09-21 12:17:12 +0200
committerMathias Bynens <mathias@qiwi.be>2015-09-21 12:17:12 +0200
commitafe5ae40f06d954bd200c89eb0e76726b2a010de (patch)
tree75f04e0b5a81216b0bcd22d1b92b4bc4d073b3dc
parent9e09c6a0dacd297d46dd3988f2ce8b7281d8e318 (diff)
downloaddotfiles-afe5ae40f06d954bd200c89eb0e76726b2a010de.tar.gz
dotfiles-afe5ae40f06d954bd200c89eb0e76726b2a010de.tar.bz2
dotfiles-afe5ae40f06d954bd200c89eb0e76726b2a010de.zip
.aliases: Make `emptytrash` clear download history too
See https://mths.be/bum for more details. Thanks to @nvartolomei for the suggestion in #177.
-rw-r--r--.aliases7
1 files changed, 4 insertions, 3 deletions
diff --git a/.aliases b/.aliases
index 1313fe5..7a3facc 100644
--- a/.aliases
+++ b/.aliases
@@ -82,9 +82,10 @@ alias c="tr -d '\n' | pbcopy"
# 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"
+# Empty the Trash on all mounted volumes and the main HDD.
+# Also, clear Apple’s System Logs to improve shell startup speed.
+# Finally, clear download history from quarantine. https://mths.be/bum
+alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl; sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'"
# Show/hide hidden files in Finder
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"