From 72de86ff532c8a63b3200d027654797bbd3ca496 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 9 Oct 2025 16:22:57 -0500 Subject: [PATCH] Write shell script to clean podman images --- home/baseline/nushell/functions.nu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/baseline/nushell/functions.nu b/home/baseline/nushell/functions.nu index d4acf0d..f295ed8 100644 --- a/home/baseline/nushell/functions.nu +++ b/home/baseline/nushell/functions.nu @@ -55,3 +55,7 @@ def bake [template: string] { print $srcdir copier copy $srcdir . } + +def podman_image_clean [] { + podman rmi ...(^podman images --format=json | from json | where {|e| not ("Names" in $e)} | get Id) +}