From b4d42230d165a1253218f1fe2f87d76509f59d7f Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sat, 22 Oct 2011 23:15:34 +0300 Subject: Add `cleanup` alias, which recursively deletes `.DS_Store` files. Useful for cleaning up external HDDs after copying over some folders. --- .aliases | 3 +++ 1 file changed, 3 insertions(+) (limited to '.aliases') 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" -- cgit v1.2.3