/usr/share/bash-completion/completions/pdal is in pdal 1.6.0-1build2.
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 | # PDAL commandline completion for bash
# See http://www.gnu.org/software/bash/manual/bash.html#Programmable-Completion-Builtins
_pdal()
{
local cur cmds
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
cmds=$(pdal --list-commands)
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $(compgen -o filenames -W "$cmds" $cur) )
else
COMPREPLY=( $(compgen -o filenames -G "${cur}*") )
fi
return 0
}
complete -F _pdal pdal
|