1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-05 01:33:37 +08:00
ohmyzsh/plugins/extract/_extract

8 lines
356 B
Plaintext
Raw Normal View History

2011-02-04 11:46:52 +08:00
#compdef extract
#autoload
_arguments \
'(-r --remove)'{-r,--remove}'[Remove archive.]' \
2021-06-09 19:29:04 +08:00
"*::archive file:_files -g '(#i)*.(7z|Z|apk|aar|bz2|cab|cpio|deb|ear|gz|ipa|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)(-.)'" \
&& return 0