I am creating a shell program which is a command line tool. I want to create my own auto-completion for this tool.
I want to do two different thing
Substitute
complete -F __my_app_autocomplete my_app
with
complete -o filenames -F __my_app_autocomplete my_app
Here you can find all the compgen options explained:
https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html