1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-11 15:23:43 +08:00
ohmyzsh/plugins/extract/_extract
2016-09-30 00:38:21 +02:00

8 lines
279 B
Plaintext

#compdef extract
#autoload
_arguments \
'(-r --remove)'{-r,--remove}'[Remove archive.]' \
"*::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