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