summaryrefslogtreecommitdiffstats
path: root/.local/bin/reclaim
diff options
context:
space:
mode:
authorPavel Egorov <[email protected]>2025-06-11 00:54:06 +0300
committerPavel Egorov <[email protected]>2025-06-11 00:54:06 +0300
commit4ae1af18d39eeb526935dd96260c5d4683a19581 (patch)
tree9cd9d69f6279bd22d3e3d1f96b7bc28d7b8eb568 /.local/bin/reclaim
parent18e52a511e4bc0844b7c63ac25c439271caffa80 (diff)
downloaddotfiles-4ae1af18d39eeb526935dd96260c5d4683a19581.tar.gz
dotfiles-4ae1af18d39eeb526935dd96260c5d4683a19581.zip
[script] Add space reclaim script
Diffstat (limited to '')
-rwxr-xr-x.local/bin/reclaim13
1 files changed, 13 insertions, 0 deletions
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 @@
1#!/usr/bin/env fish
2
3switch (rg "^ID" /etc/os-release)
4 case arch
5 paccache -rk 1
6end
7
8journalctl --vacuum-size=500M
9
10docker volume prune
11docker image prune -a
12docker buildx prune
13docker container prune --filter "until=720h" # remove containers stopped more than 30 days ago