_extract 283 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|bz2|deb|gz|ipsw|jar|lzma|rar|sublime-package|tar|tar.bz2|tar.gz|tar.xz|tar.zma|tbz|tbz2|tgz|tlz|txz|war|whl|xpi|xz|zip)(-.)'" \
  6. && return 0