From 12ff5847a6f7ea249cc9eb31fa1891ccb590f7f7 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 20 Jan 2023 13:29:10 +0100 Subject: [PATCH] clean: also drop .tox and .mypy-cache. --- .bashrc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.bashrc b/.bashrc index 938e8a6..a89d8b4 100644 --- a/.bashrc +++ b/.bashrc @@ -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()