summaryrefslogtreecommitdiffstats
path: root/clean
diff options
context:
space:
mode:
Diffstat (limited to 'clean')
-rwxr-xr-xclean3
1 files changed, 1 insertions, 2 deletions
diff --git a/clean b/clean
index 88f2aef..f5a2ee0 100755
--- a/clean
+++ b/clean
@@ -1,4 +1,3 @@
#! /bin/sh
DIR=${1:-$HOME}
-echo "find $DIR \( -name '*~' -o -name '__MACOSX' -o -name .DS_Store \) -exec rm -fr '{}' \;"
-find $DIR \( -name '*~' -o -name '__MACOSX' -o -name .DS_Store \) -exec rm -fr '{}' \;
+echo "clean $DIR" && find $DIR \( -name '*~' -o -name '*swp' -o -name '__MACOSX' -o -name .DS_Store \) -delete