1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-18 04:42:49 +00:00
dotfiles/.config/fish/functions/xcompress.fish

10 lines
172 B
Fish

function xcompress
if test -d $argv
tar -cf $argv.tar $argv
xz -efvk9T 0 $argv.tar
rm $argv.tar
else
xz -efvk9T 0 $argv
end
end