Re: Where should git-prompt.sh be installed?
From: Drew Northup <hidden>
Date: 2016-06-15 22:55:06
On Wed, Oct 24, 2012 at 8:51 PM, Jonathan Nieder [off-list ref] wrote:
Now the sysadmin should copy
contrib/completion/git-completion.sh to
/usr/share/bash-completion/completions/git
and contrib/completion/git-prompt.sh to
/usr/share/git-core/contrib/?? (somewhere?)
Mortals source /etc/bash_completion in their ~/.bashrc (possibly
shared among multiple machines) and expect bash completion to work.
For __git_ps1, users should source that ?? path.
Questions:
1) what path is appropriate for ?? above?
2) is this documented anywhere?
Possible answers:
1) Fedora uses /etc/profile.d/git-prompt.sh. Gentoo uses
/usr/share/bash-completion/git-prompt. Maybe others use
some other path.
2) The scripts themselves suggest copying to ~/.git-completion.sh
and ~/.git-prompt.sh.
Proposal:
1) /usr/lib/git-core/git-sh-prompt
2) git-sh-prompt(1)
Sensible?Does the LSB provide any guidance? If not, or if such guidance isn't helpful, I say that looks reasonable. What I'd like to know is why we are saying "copy" when symlinking is likely to be more easily maintainable? (Less chance to screw up.) -- -Drew Northup -------------------------------------------------------------- "As opposed to vegetable or mineral error?" -John Pescatore, SANS NewsBites Vol. 12 Num. 59