aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2011-12-29 08:56:06 +0100
committerMathias Bynens <mathias@qiwi.be>2011-12-29 08:56:11 +0100
commitb3241b2a775b3c0521e2f34f3d6d3484959c131a (patch)
treec912610474fa5587de992399ea1ccf7b39eeb597
parent9b0af44766d2a2cc61ae0142ac3ec9f0bed75674 (diff)
downloaddotfiles-b3241b2a775b3c0521e2f34f3d6d3484959c131a.tar.gz
dotfiles-b3241b2a775b3c0521e2f34f3d6d3484959c131a.tar.bz2
dotfiles-b3241b2a775b3c0521e2f34f3d6d3484959c131a.zip
Make `emptytrash` empty the trash for mounted external volumes too
The downside is that this requires `sudo`. Closes #32.
-rw-r--r--.aliases4
1 files changed, 2 insertions, 2 deletions
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"