Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _xz: Complete compressed, rather than uncompressed, files after -d.
- X-seq: zsh-workers 41479
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _xz: Complete compressed, rather than uncompressed, files after -d.
- Date: Tue, 1 Aug 2017 13:00:58 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=EYF+1l 5dRWeyrm+A7jxxrCjCcJKtJXqh4kmFv8GtyVs=; b=yQx3eHTOlRZxwEdbaHvpYR FgS/MWSrsNaSX5RjGtkQbu2dqXEU1JVkUuIRgiJGKa+cer/0t1ku62Gt76dBMFbw 1cAXnokXK3Z3lXeCKO4IYR44IggGqRKbDRnrz/Fr9ytXBme6Gkpi1e9t/mOmIr4z HatZ8lmzuWvjmXVFcpO91y0OB8qttaNtaSK9aeDnsf8lt8jOXxJx6Ak2ymRSW45E wHSm8ERN+Qt9W8fyB8+RBPBi42ggT+5FQyQdsjcabid/mxpihSjwgy4VUzti6cEY Ado96vzqyJUqL3x0EsBwqjaj7Q/5PpnZM7ynaW9N/FOMRv/mubJxNNXwUSIu9dtw ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=EYF+1l 5dRWeyrm+A7jxxrCjCcJKtJXqh4kmFv8GtyVs=; b=Kp2jHVCYp53DMg7N1UX0c7 inLEGuDgp4Rgb51HTF1imLVydO1D8HA2QOD0diPaILNqcFY0bgZcGm/3GEapf77l ZzuW208bMxN8x9hkjj1VC2DdgOhgzkUGqi7vwXmOnMC52kWhttyqY3PhbYVDBS5T vTYZdyv+H+TrI5/wACLCYn0HqxtdxEc/9MOCEh+Owm/oVUxps0OyhRr9ZpOJkttG 2swkP5ViM78tbCWlgXuAeoXt7YjPTagehAsGVeULSnslON3DXUSuzyC/orFUVzdM Pl78m+UqxlADu9/tHvgkTGG2txo2VjoKJPs5MZNkZEvXXh77TmOxmX9a52Bauu5Q ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
---
Completion/Unix/Command/_xz | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_xz b/Completion/Unix/Command/_xz
index 333557e66..a4dfea1f5 100644
--- a/Completion/Unix/Command/_xz
+++ b/Completion/Unix/Command/_xz
@@ -61,7 +61,7 @@ esac
case $state in
files)
(( $+opt_args[-z] || $+opt_args[--compress] )) && decompress=no
- [[ -n $opt_args[(i)-([dtl]|-decompress|-test|-list)] ]] && unset decompress
+ [[ -n ${(k)opt_args[(i)decomp*]} ]] && unset decompress
if [[ -z "$decompress" ]]; then
_description files expl 'compressed file'
_files "$expl[@]" -g '*.(xz|txz|lzma|tlz)(-.)' && return
Messages sorted by:
Reverse Date,
Date,
Thread,
Author