mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 11:31:30 +01:00
functions: add unzipd function (unzip -d)
This commit is contained in:
parent
234e2a3b82
commit
d181bb47a7
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user