1 Answer
1

There isn't a standard location for bash completions in home directories. You can either instruct people to copy your completion code into their .bashrc, or instruct them to save your completion definition script somewhere (which should not be on their $PATH) and to source it from their .bashrc. I recommend the latter since it makes upgrades a lot easier.

. ~/.bash_completions/jmc_app

Conventionally, your completions should be defined in a script with the same name as the program it completes for, containing a function definition with the same name with an underscore prepended, and calling complete to install the completion: