_extract 211 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.]' \
Neal's avatar
Neal committed
6
  "*::archive file:_files -g '(#i)*.(tar|tgz|tbz|tbz2|txz|tlz|gz|bz2|xz|lzma|Z|zip|ipsw|rar|7z|deb)(-.)'" && return 0