feat(zsh): add Unzip function

This commit is contained in:
Price Hiller 2023-07-12 19:17:45 -05:00
parent 4ef0470b43
commit 43b088a580
No known key found for this signature in database

View File

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