1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 10:41:11 +02:00

Ingmar Vanhassel: 27456: complete .tar.lzma, .tbz, .txz.

This commit is contained in:
Clint Adams 2009-12-05 17:29:11 +00:00
parent f35932958f
commit 6576451be1
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2009-12-05 Clint Adams <clint@zsh.org>
* Ingmar Vanhassel: 27456: Completion/Unix/Type/_tar_archive:
complete .tar.lzma, .tbz, .txz.
2009-12-03 Clint Adams <clint@zsh.org>
* 27448: Completion/Unix/Command/_tar,
@ -12430,5 +12435,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4830 $
* $Revision: 1.4831 $
*****************************************************

View file

@ -19,9 +19,9 @@ if [[ "$1" = *[urtx]* ]]; then
elif [[ "$1" = *[Ijy]* ]]; then
_files "$expl[@]" -g '*.(tar|TAR).bz2(-.)'
elif [[ "$1" = *J* ]]; then
_files "$expl[@]" -g '*.(tar|TAR).xz(-.)'
_files "$expl[@]" -g '*.(tar|TAR).(lzma|xz)(-.)'
elif [[ "$_cmd_variant[$service]" == gnu ]]; then
_files "$expl[@]" -g '*.((tar|TAR)(.gz|.GZ|.Z|.bz2|xz|)|tgz)(-.)'
_files "$expl[@]" -g '*.((tar|TAR)(.gz|.GZ|.Z|.bz2|.lzma|.xz|)|(tbz|tgz|txz))(-.)'
else
_files "$expl[@]" -g '*.(tar|TAR)(-.)'
fi