Add *.spkg (Sage Package) to tar filename completions.

This commit is contained in:
Ville Skyttä 2010-12-11 12:56:52 +02:00
parent 6e12e1a2aa
commit 70d5ff09e0
2 changed files with 9 additions and 9 deletions

View File

@ -31,7 +31,7 @@ bash-completion (2.x)
* Add *.iso (Alioth: #311420), *.m2t and *.m2ts (Alioth: #312770) to
xine-based player filename completions.
* Add /etc/ethers to MAC address completion sources.
* Add *.gem to tar completions.
* Add *.gem and *.spkg to tar filename completions.
* Complete known hosts from avahi-browse only if $COMP_KNOWN_HOSTS_WITH_AVAHI
is non-empty (Alioth: #312691, RedHat: #630326).
* Improve relevance of many user/group completions, depending on context.

View File

@ -19,20 +19,20 @@ _tar()
return 0
;;
+([^IZzJjy])f)
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\?\)\)'
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\?\)\)'
;;
*[Zz]*f)
ext='@(t?(ar.)|gem.)@(gz|Z)'
regex='\(t\(ar\.\)\?\|gem\.\)\(gz\|Z\)'
ext='@(t?(ar.)|gem.|spkg.)@(gz|Z)'
regex='\(t\(ar\.\)\?\|gem\.\|spkg\.\)\(gz\|Z\)'
;;
*[Ijy]*f)
ext='@(t?(ar.)|gem.)bz?(2)'
regex='\(t\(ar\.\)\?\|gem\.\)bz2\?'
ext='@(@(t?(ar.)|gem.)bz?(2)|spkg)'
regex='\(\(t\(ar\.\)\?\|gem\.\)bz2\?\|spkg\)'
;;
*[J]*f)
ext='@(t?(ar.)|gem.)@(lz?(ma)|xz)'
regex='\(t\(ar\.\)\?\|gem\.\)\(lzma\|xz\)\?'
ext='@(t?(ar.)|gem.|spkg.)@(lz?(ma)|xz)'
regex='\(t\(ar\.\)\?\|gem\.\|spkg\.\)\(lzma\|xz\)\?'
;;
*)
_filedir