From afe5ae40f06d954bd200c89eb0e76726b2a010de Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Mon, 21 Sep 2015 12:17:12 +0200 Subject: .aliases: Make `emptytrash` clear download history too See https://mths.be/bum for more details. Thanks to @nvartolomei for the suggestion in #177. --- .aliases | 7 ++++--- 1 file 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" -- cgit v1.2.3