/usr/share/bash-completion/completions/lizardfs is in lizardfs-client 3.12.0+dfsg-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 | _lizardfs() {
local cur prev opts
local MAX_COMMANDS=128
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts=$(lizardfs help |& grep -A $MAX_COMMANDS tools: \
|& tail -n+2 |& grep -B $MAX_COMMANDS deprecated |& head -n-1 |& grep -v help)
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
fi
case ${cur} in
*)
return 0
;;
esac
}
complete -o default -F _lizardfs lizardfs
|