_extract 339 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.]' \
Aloxaf's avatar
Aloxaf committed
6
  "*::archive file:_files -g '(#i)*.(7z|Z|apk|aar|bz2|deb|gz|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)(-.)'" \
7
    && return 0