module command to load and unload stuff to my environment, some of the machines I use have proper auto-completion others do not.
I'm wondering if I it possible to know where the completion comes from and install elsewhere.
You can show completion code for a command using the
If you are interested in what the
In case of functions you can the solution pointed by HairOfTheDog here:
This will execute an interactive login shell in debug mode, which will show every line executed. If you find the function definition in the output, you can then find the last