From e8a57d883cfd0c667b3bd8aec34a2cfd489ac38f Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sat, 14 Jun 2025 18:45:58 +0200 Subject: [PATCH] unzipdir --- functions/unzipdir.fish | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 functions/unzipdir.fish diff --git a/functions/unzipdir.fish b/functions/unzipdir.fish new file mode 100644 index 0000000..6e29689 --- /dev/null +++ b/functions/unzipdir.fish @@ -0,0 +1,12 @@ +function unzipdir + for zipfile in $argv + if test -f $zipfile + set name (path change-extension '' $zipfile) + mkdir -p $name + unzip -q $zipfile -d $name + echo "Unzipped $zipfile to $name/" + else + echo "File not found: $zipfile" + end + end +end