freebsd-ports/shells/zsh/files/extra-patch-bsdtar
Baptiste Daroussin b05bfa64b5 - Take maintainership, des@ is no longer having enough time for zsh, he has done a
really great job with zsh, thanks a lot. [1]
- Upgrade to 4.3.11
- add linsysfs to the file system list for completion [2]
- fix mount completion when adding available labels to the list of devices [3]

PR:		ports/141472 [2], ports/145657 [3]
Submitted by:	scf [2], Frédéric Perrin <frederic.perrin _at_ resel.fr> [3]
Approved by:	des@ [1]
2011-02-28 08:01:01 +00:00

22 lines
894 B
Text

--- ./Completion/Unix/Type/_tar_archive.orig 2009-12-05 18:29:12.000000000 +0100
+++ ./Completion/Unix/Type/_tar_archive 2011-02-27 23:44:32.000000000 +0100
@@ -14,17 +14,8 @@
_description files expl 'archive file'
if [[ "$1" = *[urtx]* ]]; then
- if [[ "$1" = *[zZ]* ]]; then
- _files "$expl[@]" -g '*.((tar|TAR).(gz|GZ|Z)|tgz)(-.)'
- elif [[ "$1" = *[Ijy]* ]]; then
- _files "$expl[@]" -g '*.(tar|TAR).bz2(-.)'
- elif [[ "$1" = *J* ]]; then
- _files "$expl[@]" -g '*.(tar|TAR).(lzma|xz)(-.)'
- elif [[ "$_cmd_variant[$service]" == gnu ]]; then
- _files "$expl[@]" -g '*.((tar|TAR)(.gz|.GZ|.Z|.bz2|.lzma|.xz|)|(tbz|tgz|txz))(-.)'
- else
- _files "$expl[@]" -g '*.(tar|TAR)(-.)'
- fi
+ # bsdtar/libarchive handle these automagically
+ _files "$expl[@]" -g '*.((tar|TAR|iso|ISO|cpio).(|(gz|GZ|Z|bz2|lzma|xz))|tgz|tbz|jar|zip|txz)(-.)'
else
_files "$expl[@]"
fi