functions: add unzipd function (unzip -d)

feature/symbol-search
bretello 2020-03-13 21:33:53 +01:00
parent 234e2a3b82
commit d181bb47a7
1 changed files with 8 additions and 0 deletions

View File

@ -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"