diff options
| author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2013-05-29 19:21:34 +0100 |
|---|---|---|
| committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2013-05-29 19:21:34 +0100 |
| commit | 95c044372a4b945761940de64eed87c30f2d555e (patch) | |
| tree | ea2138f3fe87d34f2d82101e7126833f464580ce /Completion/Unix | |
| parent | 31422: better heuristic for timestamps in age function (diff) | |
| download | zsh-95c044372a4b945761940de64eed87c30f2d555e.tar zsh-95c044372a4b945761940de64eed87c30f2d555e.tar.gz zsh-95c044372a4b945761940de64eed87c30f2d555e.tar.bz2 zsh-95c044372a4b945761940de64eed87c30f2d555e.tar.lz zsh-95c044372a4b945761940de64eed87c30f2d555e.tar.xz zsh-95c044372a4b945761940de64eed87c30f2d555e.tar.zst zsh-95c044372a4b945761940de64eed87c30f2d555e.zip | |
31433: zcat -f doesn't need suffix .gz
Diffstat (limited to 'Completion/Unix')
| -rw-r--r-- | Completion/Unix/Command/_gzip | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_gzip b/Completion/Unix/Command/_gzip index 5c88fac39..a90f23273 100644 --- a/Completion/Unix/Command/_gzip +++ b/Completion/Unix/Command/_gzip @@ -82,7 +82,11 @@ files) _files "$expl[@]" -g '^*.(([tT]|)[gG]|)[zZ](-.)' && return else _description files expl 'compressed file' - _files "$expl[@]" -g '*.(([tT]|)[gG]|)[zZ](-.)' && return + if (( $+opt_args[-f] )); then + _files "$expl[@]" && return + else + _files "$expl[@]" -g '*.(([tT]|)[gG]|)[zZ](-.)' && return + fi fi fi ;; |
