mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 15:01:21 +02:00
22511: complete compressed archive filenames for GNU tar even when a compression
option is not specified.
This commit is contained in:
parent
a940c36487
commit
fdff42eaa7
@ -1,3 +1,10 @@
|
||||
2006-06-24 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 22511: Completion/Unix/Command/_tar,
|
||||
Completion/Unix/Type/_tar_archive: complete compressed archive
|
||||
filenames for GNU tar even when a compression option is not
|
||||
specified.
|
||||
|
||||
2006-06-19 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 22501: configure.ac: reduce default maximum function depth
|
||||
|
@ -21,6 +21,8 @@ local _tar_cmd tf tmp tmpb del index
|
||||
# from some of the possible long options, and from the second word if
|
||||
# that does not start with a hyphen.
|
||||
|
||||
_pick_variant gnu=GNU unix --version
|
||||
|
||||
tmp=("${(@M)words:#-[^-]*}")
|
||||
_tar_cmd="${(j::)tmp#-}"
|
||||
|
||||
|
@ -18,6 +18,8 @@ if [[ "$1" = *[urtx]* ]]; then
|
||||
_files "$expl[@]" -g '*.((tar|TAR).(gz|GZ|Z)|tgz)(-.)'
|
||||
elif [[ "$1" = *[Ijy]* ]]; then
|
||||
_files "$expl[@]" -g '*.(tar|TAR).bz2(-.)'
|
||||
elif [[ "$_cmd_variant[$service]" == gnu ]]; then
|
||||
_files "$expl[@]" -g '*.((tar|TAR).(gz|GZ|Z|bz2)|tgz)(-.)'
|
||||
else
|
||||
_files "$expl[@]" -g '*.(tar|TAR)(-.)'
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user