1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-09-21 01:11:31 +02:00

functions: add unzipd function (unzip -d)

This commit is contained in:
bretello 2020-03-13 21:33:53 +01:00
parent 234e2a3b82
commit d181bb47a7

View File

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