Zstd
This commit is contained in:
parent
a05c02e1fb
commit
2456dad7de
5 changed files with 10 additions and 3 deletions
|
@ -16,6 +16,7 @@ alias tree='tree -Csuh'
|
|||
alias f='fzf'
|
||||
alias cp="rsync -ah --progress"
|
||||
alias year="cal $(date +%Y)"
|
||||
alias y="year"
|
||||
|
||||
# gets the newest function for the current directory (or the specified directory
|
||||
# if one is provided)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
archive_name="${1}.tar.gz"; shift
|
||||
tar czvf "${archive_name}" ${@}
|
||||
archive_name="${1}.tar.zstd"; shift
|
||||
tar --zstd -cvf "${archive_name}" ${@}
|
||||
echo "Archive created at: ${archive_name}"
|
||||
|
|
3
bin/compress
Executable file
3
bin/compress
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
zstd "$@"
|
3
bin/decompress
Executable file
3
bin/decompress
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
unzstd "$@"
|
|
@ -4,6 +4,6 @@ archive_name="${1}"; shift
|
|||
to_dir="$(basename $archive_name)"
|
||||
mkdir -p "${to_dir}"
|
||||
pushd "${to_dir}"
|
||||
tar xzvf "${archive_name}"
|
||||
tar --zstd -xvf "${archive_name}"
|
||||
echo "Unarchived to: ${to_dir}"
|
||||
popd
|
||||
|
|
Reference in a new issue