unzipdir
This commit is contained in:
parent
849da14928
commit
e8a57d883c
1 changed files with 12 additions and 0 deletions
12
functions/unzipdir.fish
Normal file
12
functions/unzipdir.fish
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue