6 lines
163 B
Fish
6 lines
163 B
Fish
|
#!/usr/bin/fish
|
||
|
function arxz
|
||
|
set size (du -sh $argv[1] | awk '{print $1}')
|
||
|
tar c $argv[1] | pv -cN raw -s {$size} | xz | pv -cN cmp > $argv[1].tar.xz
|
||
|
end
|