From 65bfabda32381deb5fa7a68a2cded6b764949551 Mon Sep 17 00:00:00 2001 From: Phantop Date: Mon, 6 Jul 2020 16:55:03 -0400 Subject: [PATCH] fish: zcompress (zstd) --- .config/fish/functions/zcompress.fish | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/fish/functions/zcompress.fish diff --git a/.config/fish/functions/zcompress.fish b/.config/fish/functions/zcompress.fish new file mode 100644 index 0000000..653c382 --- /dev/null +++ b/.config/fish/functions/zcompress.fish @@ -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