1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-10 08:54:54 +00:00
dotfiles/.config/fish/functions/xcompress.fish

11 lines
223 B
Fish
Raw Normal View History

2020-01-13 21:34:04 +00:00
# Defined in /tmp/fish.RFrpYE/xcompress.fish @ line 2
function xcompress
2019-09-24 02:06:19 +00:00
if test -d $argv
2020-01-13 21:34:04 +00:00
zip -0r $argv.zip $argv
xz -efvk9T 0 $argv.zip
rm $argv.zip
2019-09-24 02:06:19 +00:00
else
xz -efvk9T 0 $argv
end
end