Hey.

A workaround would be what the git package does with:
  /etc/bash_completion.d/git-prompt
which sources:
  /usr/lib/git-core/git-sh-prompt
which in turn provides:
  __git_ps1()
and some others that are thereby unconditionally loaded by every bash
instance.

I've asked upstream whether there are means to have files in /usr/
sourced unconditionally, perhaps that would be a better approach - at
least if there'd be also a way to mask that again:
  https://github.com/scop/bash-completion/issues/1055


Cheers,
Chris.

Reply via email to