24 lines
489 B
Bash
24 lines
489 B
Bash
# desktop-file-validate completion -*- shell-script -*-
|
|
|
|
_desktop_file_validate()
|
|
{
|
|
local cur prev words cword
|
|
_init_completion || return
|
|
|
|
case $prev in
|
|
--help)
|
|
return
|
|
;;
|
|
esac
|
|
|
|
if [[ $cur == -* ]]; then
|
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
|
return
|
|
fi
|
|
|
|
_filedir desktop
|
|
} &&
|
|
complete -F _desktop_file_validate desktop-file-validate
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|