xmllint, xmlwf, xsltproc: Complete on *.dbk and *.docbook (Alioth: #314770)

This commit is contained in:
Ville Skyttä 2014-07-19 17:15:14 +03:00
parent 9e2db8a03e
commit ab8eeb3a71
3 changed files with 4 additions and 3 deletions

View File

@ -38,7 +38,7 @@ _xmllint()
return 0 return 0
fi fi
_filedir '@(*ml|htm|svg?(z)|xs[dl]|rng|wsdl|jnlp|tld)?(.gz)' _filedir '@(*ml|htm|svg?(z)|xs[dl]|rng|wsdl|jnlp|tld|dbk|docbook)?(.gz)'
} && } &&
complete -F _xmllint xmllint complete -F _xmllint xmllint

View File

@ -25,7 +25,7 @@ _xmlwf()
return 0 return 0
fi fi
_filedir '@(*ml|htm|svg|xs[dl]|rng|wsdl|jnlp|tld)' _filedir '@(*ml|htm|svg|xs[dl]|rng|wsdl|jnlp|tld|dbk|docbook)'
} && } &&
complete -F _xmlwf xmlwf complete -F _xmlwf xmlwf

View File

@ -41,7 +41,8 @@ _xsltproc()
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
COMPREPLY=( "${COMPREPLY[@]%:}" ) COMPREPLY=( "${COMPREPLY[@]%:}" )
else else
_filedir '@(xsl|xslt|xml)' # TODO: 1st file xsl|xslt, rest XML
_filedir '@(xsl|xslt|xml|dbk|docbook)'
fi fi
} && } &&
complete -F _xsltproc xsltproc complete -F _xsltproc xsltproc