mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-16 11:52:47 +00:00
fish: zcompress (zstd)
This commit is contained in:
parent
53633cac79
commit
65bfabda32
10
.config/fish/functions/zcompress.fish
Normal file
10
.config/fish/functions/zcompress.fish
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Defined in /tmp/fish.PGT46K/zcompress.fish @ line 2
|
||||||
|
function zcompress
|
||||||
|
if test -d $argv
|
||||||
|
tar -cf $argv.tar $argv
|
||||||
|
zstd -19 $argv.tar
|
||||||
|
rm $argv.tar
|
||||||
|
else
|
||||||
|
zstd -19 $argv
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue