diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-12-27 10:04:59 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-12-27 10:04:59 +0100 |
commit | 85776bb0c7b222a3e2f2448782844c5575f8d163 (patch) | |
tree | 28b4644b063248e4f78a7ee1281b191bca2d51c8 | |
parent | 948ab830dc3d5285874695ae333acac2902a9c60 (diff) | |
download | bin-85776bb0c7b222a3e2f2448782844c5575f8d163.zip bin-85776bb0c7b222a3e2f2448782844c5575f8d163.tar.gz |
clean: remove vim swap files too
-rwxr-xr-x | clean | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |