diff options
| author | Pavel Egorov <[email protected]> | 2025-06-11 00:54:06 +0300 |
|---|---|---|
| committer | Pavel Egorov <[email protected]> | 2025-06-11 00:54:06 +0300 |
| commit | 4ae1af18d39eeb526935dd96260c5d4683a19581 (patch) | |
| tree | 9cd9d69f6279bd22d3e3d1f96b7bc28d7b8eb568 /.local/bin | |
| parent | 18e52a511e4bc0844b7c63ac25c439271caffa80 (diff) | |
| download | dotfiles-4ae1af18d39eeb526935dd96260c5d4683a19581.tar.gz dotfiles-4ae1af18d39eeb526935dd96260c5d4683a19581.zip | |
[script] Add space reclaim script
Diffstat (limited to '')
| -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 | ||
