From f35932958fccbd464d8e8514a106fef6d9c86ff3 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Thu, 3 Dec 2009 05:33:14 +0000 Subject: 27448: mild understanding of xz-compressed tarballs. --- Completion/Unix/Type/_tar_archive | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Type') diff --git a/Completion/Unix/Type/_tar_archive b/Completion/Unix/Type/_tar_archive index 1ac7cd0bf..a39e841f8 100644 --- a/Completion/Unix/Type/_tar_archive +++ b/Completion/Unix/Type/_tar_archive @@ -18,8 +18,10 @@ if [[ "$1" = *[urtx]* ]]; 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).xz(-.)' elif [[ "$_cmd_variant[$service]" == gnu ]]; then - _files "$expl[@]" -g '*.((tar|TAR)(.gz|.GZ|.Z|.bz2|)|tgz)(-.)' + _files "$expl[@]" -g '*.((tar|TAR)(.gz|.GZ|.Z|.bz2|xz|)|tgz)(-.)' else _files "$expl[@]" -g '*.(tar|TAR)(-.)' fi -- cgit 1.4.1