Last active
December 22, 2016 09:56
-
-
Save kmark/ce062e7b5179df96a027b875f6e5bd11 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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