summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_gzip
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_gzip')
-rw-r--r--Completion/Unix/Command/_gzip4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_gzip b/Completion/Unix/Command/_gzip
index 3f5aeb1b7..5c88fac39 100644
--- a/Completion/Unix/Command/_gzip
+++ b/Completion/Unix/Command/_gzip
@@ -79,10 +79,10 @@ files)
else
if [[ -z "$decompress" ]]; then
_description files expl 'file to compress'
- _files "$expl[@]" -g '*~*.(([tT]|)[gG]|)[zZ]' && return
+ _files "$expl[@]" -g '^*.(([tT]|)[gG]|)[zZ](-.)' && return
else
_description files expl 'compressed file'
- _files "$expl[@]" -g '*.(([tT]|)[gG]|)[zZ]' && return
+ _files "$expl[@]" -g '*.(([tT]|)[gG]|)[zZ](-.)' && return
fi
fi
;;