I have a number of bash functions which I source from my .bashrc. I also have a bunch of support function that are needed but do not want them to show up in a terminal session when a user does tab-completion.
My bash functions start with xepty-. Support functions also start with xepty-. Thus when users are in a terminal window, and they input xepty-Tab, they get a large number of matches. Is it possible to make the support functions unavailable for use in the terminal session?
.bashrcis the initialization file for interactive sessions. Why are the functions there if you don't want to use them in interactive sessions? Are they just supposed to be used internally to.bashrcitself?_xepty-and leave the functions that are expected to be used interactively asxepty-..bashrcend up in other users interactive shells? You do need to split "personal" scripts from "system" scripts..bashrc, but the support functions won't be useful for them to run.