/usr/share/bash-completion/completions/py is in pythonpy 0.4.11b-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 | _py()
{
COMPREPLY=($(/usr/share/pythonpy/pythonpy/pycompleter.py "${COMP_WORDS[@]}" 2>/dev/null | sed 's/.*1034h//'))
if [[ ${COMPREPLY[0]} == '_longopt' ]]; then
COMPREPLY=()
_longopt 2>/dev/null
fi
}
complete -F _py -o nospace py
|