diff options
author | Mathias Bynens <mathias@qiwi.be> | 2015-09-21 12:17:12 +0200 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2015-09-21 12:17:12 +0200 |
commit | afe5ae40f06d954bd200c89eb0e76726b2a010de (patch) | |
tree | 75f04e0b5a81216b0bcd22d1b92b4bc4d073b3dc /.aliases | |
parent | 9e09c6a0dacd297d46dd3988f2ce8b7281d8e318 (diff) | |
download | dotfiles-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.
Diffstat (limited to '.aliases')
-rw-r--r-- | .aliases | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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" |