aboutsummaryrefslogtreecommitdiff
path: root/functions/7za.fish
blob: f7c5d7627cd375e19eee53ebac84ed6b7cc0c10f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function 7za --wraps 'bsdtar' --description "Emulate 7za with bsdtar"

if test (count $argv) -lt 1
  echo "Missing argument."
  return 1
end

if not command -sq bsdtar
  echo "Can't find bsdtar."
  return 1
end

command bsdtar -xf "$argv[-1]"

end