1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 15:40:56 +08:00
ohmyzsh/plugins/extract/_extract
2019-12-18 10:53:53 +01:00

8 lines
315 B
Plaintext

#compdef extract
#autoload
_arguments \
'(-r --remove)'{-r,--remove}'[Remove archive.]' \
"*::archive file:_files -g '(#i)*.(7z|Z|apk|aar|bz2|deb|gz|ipsw|jar|lzma|rar|rpm|sublime-package|tar|tar.bz2|tar.gz|tar.lz|tar.xz|tar.zma|tar.zst|tbz|tbz2|tgz|tlz|txz|tzst|war|whl|xpi|xz|zip|zst)(-.)'" \
&& return 0