From b3241b2a775b3c0521e2f34f3d6d3484959c131a Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Thu, 29 Dec 2011 08:56:06 +0100 Subject: Make `emptytrash` empty the trash for mounted external volumes too The downside is that this requires `sudo`. Closes #32. --- .aliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.aliases') diff --git a/.aliases b/.aliases index aa40336..951fe69 100644 --- a/.aliases +++ b/.aliases @@ -62,8 +62,8 @@ alias fs="stat -f \"%z bytes\"" # ROT13-encode text. Works for decoding, too! ;) alias rot13='tr a-zA-Z n-za-mN-ZA-M' -# Empty the Trash -alias emptytrash="rm -rfv ~/.Trash" +# Empty the Trash on all mounted volumes and the main HDD +alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; rm -rfv ~/.Trash" # Show/hide hidden files in Finder alias show="defaults write com.apple.Finder AppleShowAllFiles -bool true && killall Finder" -- cgit v1.2.3