aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/gc7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/gc b/bin/gc
index e1762e9..04e0ba5 100755
--- a/bin/gc
+++ b/bin/gc
@@ -20,6 +20,7 @@ help() {
- guix
- trash
- tmpdir
+ - coredump
- docker
@@ -97,7 +98,11 @@ gc_trash() {
}
gc_tmpdir() {
- find "${TMPDIR:-/tmp}" -atime +10 -exec rm -vf "{}" \; ||:
+ find "${TMPDIR:-/tmp}" -atime +10 -exec rm -vrf {} \;
+}
+
+gc_coredump() {
+ find /var/crash/ -type f -user "$USER" -exec rm -vf {} \;
}
gc_docker() {