feat(zsh): add Unzip function

This commit is contained in:
Price Hiller 2023-07-12 19:17:45 -05:00
parent 4ef0470b43
commit 43b088a580
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -160,3 +160,9 @@ TCPDump-Capture() {
tcpdump -qns 0 -X -r "${1}"
}
Unzip () {
for item in "${*[@]}"; do
unzip -d "${item%.zip}" "${item}" || return
printf "\n"
done
}