mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 15:53:22 +01:00
a4f08ad238
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
8 lines
369 B
Plaintext
8 lines
369 B
Plaintext
#compdef extract
|
|
#autoload
|
|
|
|
_arguments \
|
|
'(-r --remove)'{-r,--remove}'[Remove archive.]' \
|
|
"*::archive file:_files -g '(#i)*.(7z|Z|apk|aar|bz2|cab|cpio|deb|ear|gz|ipa|ipsw|jar|lrz|lz4|lzma|obscpio|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|zpaq)(-.)'" \
|
|
&& return 0
|