blob: e3703312ef45dfc9316cc3d6344d539cd6ff76c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
if status is-interactive
if command -sq bsdtar
alias mz 'bsdtar -a -cf'
alias_if_not unzip bsdtar -xf
alias_if_not unrar bsdtar -xf
end
# If we have more than one CPU core, use threaded uncompression.
if command -sq nproc
if test (nproc) -gt 1
alias_if xz xz -T 0
alias_if unxz unxz -T 0
alias_if unpigz gunzip
alias_if parunzip unzip
alias_if pbzip2 bzip2
alias_if bzip3 bzip3 -j (nproc)
end
end
end
|