bash-completion/completions/xmlwf

33 lines
715 B
Plaintext
Raw Permalink Normal View History

# bash completion for xmlwf(1) -*- shell-script -*-
2009-07-07 08:47:33 -07:00
_xmlwf()
{
local cur prev words cword
_init_completion || return
2009-07-07 08:47:33 -07:00
case $prev in
2009-10-04 10:42:50 -07:00
-d)
_filedir -d
return 0
;;
-e)
COMPREPLY=( $( compgen -W 'US-ASCII UTF-8 UTF-16 ISO-8859-1' \
-- "$cur" ) )
2009-10-04 10:42:50 -07:00
return 0
;;
-v)
return 0
;;
2009-10-04 10:42:50 -07:00
esac
2009-07-07 08:47:33 -07:00
2009-10-04 10:42:50 -07:00
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
2009-10-04 10:42:50 -07:00
return 0
fi
2009-07-07 08:47:33 -07:00
_filedir '@(*ml|htm|svg|xs[dl]|rng|wsdl|jnlp|tld|dbk|docbook)'
2009-07-07 08:47:33 -07:00
} &&
complete -F _xmlwf xmlwf
2009-10-04 10:42:50 -07:00
# ex: ts=4 sw=4 et filetype=sh