aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gc.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/gc.sh b/scripts/gc.sh
index 9670149..ac1b412 100755
--- a/scripts/gc.sh
+++ b/scripts/gc.sh
@@ -45,14 +45,15 @@ docker rm $(docker ps -a -q)
echo y | docker volume prune
echo y | docker container prune
+
+# Source: https://www.reddit.com/r/emacs/comments/6wqfp3/notmuch_delete_mail/
+yellow "Clean up deleted email files"
+notmuch search --output=files --exclude=false tag:deleted | xargs -I{} rm "{}"
+notmuch new
+
after=$(disk_space)
green "Done."
green "Disk space before and after:"
blue " before: ${before}"
blue " after: ${after}"
-
-# Clean up deleted email files:
-# Source: https://www.reddit.com/r/emacs/comments/6wqfp3/notmuch_delete_mail/
-# notmuch search --output=files --exclude=false tag:deleted | xargs -I{} rm "{}"
-# notmuch new