Fix completion of files inside *.tar.bz2 archives when [Ijy] is not given.

This commit is contained in:
Ville Skyttä 2011-03-20 17:11:39 +02:00
parent 14fc9f2965
commit 91c13f0eed
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ bash-completion (2.x)
[ Ville Skyttä ]
* Add reptyr completion.
* Improve aspell, gendiff, and smartctl completions.
* Improve aspell, gendiff, smartctl, and tar completions.
* Try harder to find the correct perl executable to run the perl helper with.
* Drop rpm query support for rpm < 4.1.
* Split rpm and rpmbuild completions and improve them both.

View File

@ -20,7 +20,7 @@ _tar()
;;
+([^IZzJjy])f)
ext='@(@(tar|gem|spkg)?(.@(Z|[gx]z|bz?(2)|lzma))|t@([glx]z|bz?(2)))'
regex='\(\(tar\|gem\|spkg\)\(\.\(Z\|[gx]z\|bz?(2)\|lzma\)\)\?\|t\([glx]z\|bz2\?\)\)'
regex='\(\(tar\|gem\|spkg\)\(\.\(Z\|[gx]z\|bz2\?\|lzma\)\)\?\|t\([glx]z\|bz2\?\)\)'
;;
*[Zz]*f)
ext='@(t?(ar.)|gem.|spkg.)@(gz|Z)'