From 6f6a8ac5f8527a21b4869ce65774f0fe3a276b57 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Wed, 5 Aug 2026 17:15:45 +0800 Subject: [PATCH] feat(zshrc): add cleanzip helper for macOS junk in archives Small portable utility next to cheat/speedtest; strips __MACOSX and .DS_Store entries via zip -d. --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index e0d840f..20ce357 100644 --- a/.zshrc +++ b/.zshrc @@ -196,6 +196,11 @@ dadjoke() { curl https://icanhazdadjoke.com } +# Strip macOS junk from a zip (requires `zip`). Usage: cleanzip archive.zip +cleanzip() { + zip -d "$@" __MACOSX/\* \*/.DS_Store +} + # Find geo info from IP ipgeo() { # Specify ip or your ip will be used