From 4ae1af18d39eeb526935dd96260c5d4683a19581 Mon Sep 17 00:00:00 2001 From: Pavel Egorov Date: Wed, 11 Jun 2025 00:54:06 +0300 Subject: [script] Add space reclaim script --- .local/bin/reclaim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 .local/bin/reclaim (limited to '.local/bin') diff --git a/.local/bin/reclaim b/.local/bin/reclaim new file mode 100755 index 0000000..f754fe5 --- /dev/null +++ b/.local/bin/reclaim @@ -0,0 +1,13 @@ +#!/usr/bin/env fish + +switch (rg "^ID" /etc/os-release) + case arch + paccache -rk 1 +end + +journalctl --vacuum-size=500M + +docker volume prune +docker image prune -a +docker buildx prune +docker container prune --filter "until=720h" # remove containers stopped more than 30 days ago -- cgit v1.3