aboutsummaryrefslogtreecommitdiff
path: root/functions/7za.fish
blob: 21b514a75dad92d661ad8e0f2762376b92938e3e (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 fint bsdtar."
  return 1
end

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

end