_extract 347 B

1234567
  1. #compdef extract
  2. #autoload
  3. _arguments \
  4. '(-r --remove)'{-r,--remove}'[Remove archive.]' \
  5. "*::archive file:_files -g '(#i)*.(7z|Z|apk|aar|bz2|deb|ear|gz|ipa|ipsw|jar|lrz|lz4|lzma|rar|rpm|sublime-package|tar|tar.bz2|tar.gz|tar.lrz|tar.lz|tar.lz4|tar.xz|tar.zma|tar.zst|tbz|tbz2|tgz|tlz|txz|tzst|war|whl|xpi|xz|zip|zst)(-.)'" \
  6. && return 0