diff options
author | Mathias Bynens <mathias@qiwi.be> | 2011-12-29 08:56:06 +0100 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2011-12-29 08:56:11 +0100 |
commit | b3241b2a775b3c0521e2f34f3d6d3484959c131a (patch) | |
tree | c912610474fa5587de992399ea1ccf7b39eeb597 /.aliases | |
parent | 9b0af44766d2a2cc61ae0142ac3ec9f0bed75674 (diff) | |
download | dotfiles-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.
Diffstat (limited to '.aliases')
-rw-r--r-- | .aliases | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |