aboutsummaryrefslogtreecommitdiff
path: root/conf.d/05z.fish
blob: 13ae65a4fb4d7e02fcf15b716f667c404af6a8d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if status is-interactive

if command -sq bsdtar
  alias uz 'bsdtar -xf'
  alias mz 'bsdtar -a -cf'

  if not command -sq unrar
    alias unrar 'bsdtar -xf'
  end

  if not command -sq 7za
    alias 7za 'bsdtar -xf'
  end

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