Add *.gem to tar completions.

This commit is contained in:
Ville Skyttä 2010-10-24 23:40:55 +03:00
parent 81b916effc
commit 0073c92980
2 changed files with 9 additions and 8 deletions

View File

@ -29,6 +29,7 @@ bash-completion (2.x)
* Add *.m2t and *.m2ts to xine-based player filename completions
(Alioth: #312770).
* Add /etc/ethers to MAC address completion sources.
* Add *.gem to tar completions.
[ Freddy Vulto ]
* Added _tilde(), fix ~username completion (Alioth: #312613, Debian: #587095)

View File

@ -19,20 +19,20 @@ _tar()
return 0
;;
+([^IZzJjy])f)
ext='t@(ar?(.@(Z|gz|bz?(2)|lz?(ma)|xz))|gz|bz?(2)|lz?(ma)|xz)'
regex='t\(ar\(\.\(Z\|gz\|bz2\?\|lzma\|xz\)\)\?\|gz\|bz2\?\|lzma\|xz\)'
ext='@(@(tar|gem)?(.@(Z|[gx]z|bz?(2)|lzma))|t@([glx]z|bz?(2)))'
regex='\(\(tar\|gem\)\(\.\(Z\|[gx]z\|bz?(2)\|lzma\)\)\?\|t\([glx]z\|bz2\?\)\)'
;;
*[Zz]*f)
ext='t?(ar.)@(gz|Z)'
regex='t\(ar\.\)\?\(gz\|Z\)'
ext='@(t?(ar.)|gem.)@(gz|Z)'
regex='\(t\(ar\.\)\?\|gem\.\)\(gz\|Z\)'
;;
*[Ijy]*f)
ext='t?(ar.)bz?(2)'
regex='t\(ar\.\)\?bz2\?'
ext='@(t?(ar.)|gem.)bz?(2)'
regex='\(t\(ar\.\)\?\|gem\.\)bz2\?'
;;
*[J]*f)
ext='t?(ar.)@(lz?(ma)|xz)'
regex='t\(ar\.\)\?\(lzma\|xz\)\?'
ext='@(t?(ar.)|gem.)@(lz?(ma)|xz)'
regex='\(t\(ar\.\)\?\|gem\.\)\(lzma\|xz\)\?'
;;
*)
_filedir