clean: also drop .tox and .mypy-cache.

This commit is contained in:
Julien Palard 2023-01-20 13:29:10 +01:00
parent 32837df11c
commit 12ff5847a6
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 3 additions and 5 deletions

View File

@ -143,11 +143,9 @@ urlencode()
# Removes *~ and #*# files in curent folder, for a depth limited to 3 folders.
clean()
{
find -maxdepth 3 -name .emacs_backups -prune \
-o \( -type f -a \
\( -name '*~' -o -name '#*#' \) \
\) \
-print0 | xargs -0 rm -f
find -maxdepth 3 \
\( -name '*~' -o -name '#*#' -o -name .tox -o -name .mypy_cache \) \
-print0 | xargs -0 rm -vfr
}
dotfiles()