_extract 279 Bytes
Newer Older
Sorin Ionescu's avatar
Sorin Ionescu committed
1
2
3
4
5
#compdef extract
#autoload

_arguments \
  '(-r --remove)'{-r,--remove}'[Remove archive.]' \
6
7
  "*::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|xpi|xz|zip)(-.)'" \
    && return 0