/usr/share/bash-completion/completions/ufomodel is in ufoai-tools 2.5-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | _ufomodel()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="--help --verbose -skinedit -mdx"
if [[ ${cur} == -* ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
else
local names=$(for x in `find base/model -name "*.md2"`; do echo ${x/base\//} ; done )
COMPREPLY=( $(compgen -W "${names}" -- ${cur}) )
return 0
fi
}
complete -F _ufomodel ufomodel
|