Skip to content

Commit

Permalink
xmllint, xmlwf, xsltproc: Complete on *.dbk and *.docbook (Alioth: #3…
Browse files Browse the repository at this point in the history
…14770)
  • Loading branch information
scop committed Jul 19, 2014
1 parent 9e2db8a commit ab8eeb3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion completions/xmllint
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ _xmllint()
return 0
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

Expand Down
2 changes: 1 addition & 1 deletion completions/xmlwf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ _xmlwf()
return 0
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

Expand Down
3 changes: 2 additions & 1 deletion completions/xsltproc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ _xsltproc()
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
COMPREPLY=( "${COMPREPLY[@]%:}" )
else
_filedir '@(xsl|xslt|xml)'
# TODO: 1st file xsl|xslt, rest XML
_filedir '@(xsl|xslt|xml|dbk|docbook)'
fi
} &&
complete -F _xsltproc xsltproc
Expand Down

0 comments on commit ab8eeb3

Please sign in to comment.