Skip to content

Instantly share code, notes, and snippets.

@kmark
Last active December 22, 2016 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmark/ce062e7b5179df96a027b875f6e5bd11 to your computer and use it in GitHub Desktop.
Save kmark/ce062e7b5179df96a027b875f6e5bd11 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -z ${1+x} ]; then
workdir=${PWD}
else
workdir=${1}
fi
find "${workdir}" -name '.DS_Store' -type f -delete
find "${workdir}" -name '.Trashes' -type d -delete
find "${workdir}" -type d -print0 | xargs -0 dot_clean -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment