From 70d5ff09e04886e33998def5eebbdec84dae230a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 11 Dec 2010 12:56:52 +0200 Subject: [PATCH] Add *.spkg (Sage Package) to tar filename completions. --- CHANGES | 2 +- completions/tar | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CHANGES b/CHANGES index 47621470..4a27d45f 100644 --- a/CHANGES +++ b/CHANGES @@ -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. diff --git a/completions/tar b/completions/tar index fba25d61..a5c02490 100644 --- a/completions/tar +++ b/completions/tar @@ -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