aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2011-10-22 23:15:34 +0300
committerMathias Bynens <mathias@qiwi.be>2011-10-22 23:15:34 +0300
commitb4d42230d165a1253218f1fe2f87d76509f59d7f (patch)
tree2d94f247c7507b19fe1d36b894da680b72197e1a
parent81da8db24720ece87ee4315bcb659716b7588136 (diff)
downloaddotfiles-b4d42230d165a1253218f1fe2f87d76509f59d7f.tar.gz
dotfiles-b4d42230d165a1253218f1fe2f87d76509f59d7f.tar.bz2
dotfiles-b4d42230d165a1253218f1fe2f87d76509f59d7f.zip
Add `cleanup` alias, which recursively deletes `.DS_Store` files. Useful for cleaning up external HDDs after copying over some folders.
-rw-r--r--.aliases3
1 files changed, 3 insertions, 0 deletions
diff --git a/.aliases b/.aliases
index 8836342..a1e1f2f 100644
--- a/.aliases
+++ b/.aliases
@@ -46,6 +46,9 @@ type -t md5sum > /dev/null || alias md5sum="md5"
# Trim new lines and copy to clipboard
alias c="tr -d '\n' | pbcopy"
+# Recursively delete `.DS_Store` files
+alias cleanup="find . -name '*.DS_Store' -type f -delete"
+
# Shortcuts
alias d="cd ~/Documents/Dropbox"
alias p="cd ~/Projects"