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