summaryrefslogtreecommitdiffstats
path: root/clean
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-12-27 10:04:59 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-12-27 10:04:59 +0100
commit85776bb0c7b222a3e2f2448782844c5575f8d163 (patch)
tree28b4644b063248e4f78a7ee1281b191bca2d51c8 /clean
parent948ab830dc3d5285874695ae333acac2902a9c60 (diff)
downloadbin-85776bb0c7b222a3e2f2448782844c5575f8d163.zip
bin-85776bb0c7b222a3e2f2448782844c5575f8d163.tar.gz
clean: remove vim swap files too
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