You ask a few different questions.
Firstly, there is no cross-platform or cross-shell solution for defining custom shell add-ons. The one you posted works for bash, but in tcsh, for example, you use the tcsh complete command, which works differently than bash.
Secondly, searching for files containing these termination definitions during pip install will not do much good. Terminations may work in this session, but you probably want them to take effect in future sessions (i.e. shell calls). To do this, your files must be received each time the shell starts (for example, from within the .bashrc user, in the case of bash ).
This means that โinstallingโ your files simply means placing them somewhere, and suggesting that users should send them from the corresponding dot-rc file. Even if you could, you should not try to "force" him. Give your users the option to add them to the dot-rc file if they want.
The best approach would probably be to include termination definitions in your package for a supported shell, for example. complete.bash , complete.tcsh , and God knows that for Windows (sorry, I'm not a Windows user).
source share