diff --git a/functions.sh b/functions.sh index c4f9cbb..b8fbe93 100755 --- a/functions.sh +++ b/functions.sh @@ -232,6 +232,14 @@ function pipupdate(){ done } +function unzipd { + zip_file="$1" + filename=$(basename -- "$zip_file") + extension="${filename##*.}" + name="${filename%.*}" + unzip -d "$name" "$zip_file" +} + # dotfiles user functions if [[ -f $HOME/.dotfiles_functions ]]; then source "$HOME/.dotfiles_functions"