[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 6e12e1a2aafbcff5d0a4fd22ddf16821a21b8e63

Ville Skyttä ville.skytta at iki.fi
Thu Dec 9 21:04:12 UTC 2010


The following commit has been merged in the master branch:
commit 6e12e1a2aafbcff5d0a4fd22ddf16821a21b8e63
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Dec 9 22:58:01 2010 +0200

    Add *.gz versions of supported filenames to xmllint filename completions.

diff --git a/CHANGES b/CHANGES
index 50d7256..4762147 100644
--- a/CHANGES
+++ b/CHANGES
@@ -18,7 +18,8 @@ bash-completion (2.x)
     mplayer, povray, python, rpmbuild, sqlite3, tar, wodim, and general help
     parsing completions.
   * Fix p4 and povray completions (Alioth: #312625).
-  * Add *.xsd, *.xsl, *.rng, and *.wsdl to xmllint filename completions.
+  * Add *.xsd, *.xsl, *.rng, and *.wsdl to xmllint filename completions,
+    and *.gz versions of all of the supported ones.
   * Recognize rpm query mode based on the --file, --group, --package, and
     --all long options (RedHat: #630328).
   * Improve rpm query option completions.
diff --git a/completions/xmllint b/completions/xmllint
index 27ba61e..bed3b42 100644
--- a/completions/xmllint
+++ b/completions/xmllint
@@ -18,19 +18,19 @@ _xmllint()
             return 0
             ;;
         --dtdvalid)
-            _filedir dtd
+            _filedir 'dtd?(.gz)'
             return 0
             ;;
         --relaxng)
-            _filedir rng
+            _filedir 'rng?(.gz)'
             return 0
             ;;
         --schema)
-            _filedir xsd
+            _filedir 'xsd?(.gz)'
             return 0
             ;;
         --schematron)
-            _filedir sch
+            _filedir 'sch?(.gz)'
             return 0
             ;;
     esac
@@ -42,7 +42,7 @@ _xmllint()
         return 0
     fi
 
-    _filedir '@(*ml|htm|svg|xs[dl]|rng|wsdl)'
+    _filedir '@(*ml|htm|svg|xs[dl]|rng|wsdl)?(.gz)'
 } &&
 complete -F _xmllint xmllint
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list