From 43b088a580e230a00fceeac498079bbeeb2ae0f5 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 12 Jul 2023 19:17:45 -0500 Subject: [PATCH] feat(zsh): add Unzip function --- dots/.config/zsh/config/profile/profile/functions.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dots/.config/zsh/config/profile/profile/functions.zsh b/dots/.config/zsh/config/profile/profile/functions.zsh index 528548de..02788826 100644 --- a/dots/.config/zsh/config/profile/profile/functions.zsh +++ b/dots/.config/zsh/config/profile/profile/functions.zsh @@ -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 +}