summaryrefslogtreecommitdiff
path: root/completions/xsltproc
diff options
context:
space:
mode:
Diffstat (limited to 'completions/xsltproc')
-rw-r--r--completions/xsltproc24
1 files changed, 12 insertions, 12 deletions
diff --git a/completions/xsltproc b/completions/xsltproc
index 7c38591f..98d3e72a 100644
--- a/completions/xsltproc
+++ b/completions/xsltproc
@@ -6,44 +6,44 @@ _xsltproc()
_init_completion || return
case $prev in
- --output|-o)
+ --output|-o)
_filedir
- return 0
+ return
;;
# TODO : number only
--maxdepth)
- return 0
+ return
;;
--encoding)
# some aliases removed
- COMPREPLY=( $( compgen -W "$( iconv -l | sed -e '/^UTF[1378]/d' \
+ COMPREPLY=( $( compgen -W "$( iconv -l | command sed -e '/^UTF[1378]/d' \
-e '/^ISO[0-9_]/d' -e '/^8859/d' -e 's/\/.*//')" -- "$cur" ) )
- return 0
+ return
;;
--param|--stringparam)
- return 0
+ return
;;
# not really like --writesubtree
--path)
_filedir -d
- return 0
+ return
;;
--writesubtree)
_filedir -d
- return 0
+ return
;;
esac
- [[ $cword -gt 2 && `_get_cword '' 2` == --?(string)param ]] && \
- return 0
+ [[ $cword -gt 2 && `_get_cword '' 2` == --?(string)param ]] && return
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
COMPREPLY=( "${COMPREPLY[@]%:}" )
else
- _filedir '@(xsl|xslt|xml)'
+ # TODO: 1st file xsl|xslt, 2nd XML
+ _filedir '@(xsl|xslt|xml|dbk|docbook|page)'
fi
} &&
complete -F _xsltproc xsltproc
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh