mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 07:40:07 +00:00
68c4c06283
Also more quiet extraction. -D for cpio was not used due to additional output.
7 lines
291 B
Text
7 lines
291 B
Text
#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.xz|tar.zma|tbz|tbz2|tgz|tlz|txz|war|whl|xpi|xz|zip)(-.)'" \
|
|
&& return 0
|