mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-14 09:50:08 +00:00
322e592c38
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
7 lines
343 B
Text
7 lines
343 B
Text
#compdef extract
|
|
#autoload
|
|
|
|
_arguments \
|
|
'(-r --remove)'{-r,--remove}'[Remove archive.]' \
|
|
"*::archive file:_files -g '(#i)*.(7z|Z|apk|aar|bz2|deb|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
|