[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 3217cff1efbecd85710853564f93648fd2f597ce

Mike Kelly pioto at pioto.org
Mon Mar 16 09:49:26 UTC 2009


The following commit has been merged in the master branch:
commit 3217cff1efbecd85710853564f93648fd2f597ce
Author: Mike Kelly <pioto at pioto.org>
Date:   Mon Mar 16 05:49:06 2009 -0400

    _tar: Support .tar.xz files.

diff --git a/bash_completion b/bash_completion
index 9649b2a..51a2325 100644
--- a/bash_completion
+++ b/bash_completion
@@ -2979,7 +2979,7 @@ _tar()
 		;;
 	+([^IZzJjy])f)
 		ext='t@(ar?(.@(Z|gz|bz?(2)|lz?(ma)))|gz|bz?(2)|lz?(ma))'
-		regex='t\(ar\(\.\(Z\|gz\|bz2\?\|lzma\)\)\?\|gz\|bz2\?\|lzma\)'
+		regex='t\(ar\(\.\(Z\|gz\|bz2\?\|lzma\|xz\)\)\?\|gz\|bz2\?\|lzma\|xz\)'
 		;;
 	*[Zz]*f)
 		ext='t?(ar.)@(gz|Z)'
@@ -2990,8 +2990,8 @@ _tar()
 		regex='t\(ar\.\)\?bz2\?'
 		;;
 	*[J]*f)
-		ext='t?(ar.)lz?(ma)'
-		regex='t\(ar\.\)\?lzma\?'
+		ext='t?(ar.)@(lz?(ma)|xz)'
+		regex='t\(ar\.\)\?\(lzma\|xz\)\?'
 		;;
 	*)
 		_filedir

-- 
bash-completion



More information about the Bash-completion-commits mailing list