/usr/share/bash-completion/completions/lldpcli is in lldpd 0.9.9-1.
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 20 21 22 23 24 25 26 | _lldpcli()
{
COMPREPLY=()
COMP_WORDBREAKS=" "
local cur=${COMP_WORDS[COMP_CWORD]}
local cmd=(${COMP_WORDS[*]})
if [ "" != "$cur" ]; then
unset cmd[COMP_CWORD]
fi
local choices=$(${cmd[0]} complete ${cmd[@]:1} | \
cut -d " " -f 1)
COMPREPLY=($(compgen -W '${choices}' -- ${cur} ))
return 0
}
complete -F _lldpcli lldpcli
# Local Variables:
# mode: Shell-Script
# sh-indentation: 4
# indent-tabs-mode: nil
# sh-basic-offset: 4
# End:
# vim: ft=zsh sw=4 ts=4 et
|