1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-13 02:12:44 +00:00
dotfiles/.config/fish/functions/xcompress.fish

11 lines
223 B
Fish

# Defined in /tmp/fish.JK2lNx/xcompress.fish @ line 2
function xcompress
if test -d $argv
tar -0r $argv.zip $argv
xz -efvk9T 0 $argv.zip
rm $argv.zip
else
xz -efvk9T 0 $argv
end
end