diff options
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/reclaim | 13 |
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 | |||
| 3 | switch (rg "^ID" /etc/os-release) | ||
| 4 | case arch | ||
| 5 | paccache -rk 1 | ||
| 6 | end | ||
| 7 | |||
| 8 | journalctl --vacuum-size=500M | ||
| 9 | |||
| 10 | docker volume prune | ||
| 11 | docker image prune -a | ||
| 12 | docker buildx prune | ||
| 13 | docker container prune --filter "until=720h" # remove containers stopped more than 30 days ago | ||
