Re: Where should git-prompt.sh be installed?

2012-10-25 Thread Jonathan Nieder
SZEDER Gábor wrote: > On Wed, Oct 24, 2012 at 05:51:06PM -0700, Jonathan Nieder wrote: >> Proposal: >> >> 1) /usr/lib/git-core/git-sh-prompt >> 2) git-sh-prompt(1) > > Not sure about the "sh" part. The prompt function is very > Bash-specific, it won't work under a plain POSIX shell. That's a

Re: Where should git-prompt.sh be installed?

2012-10-25 Thread SZEDER Gábor
On Wed, Oct 24, 2012 at 05:51:06PM -0700, Jonathan Nieder wrote: > Hi, > > In olden days the admin would copy contrib/completion/git-completion.sh > to > > /etc/bash_completion.d/git > > and mortals could source /etc/bash_completion or > /etc/bash_completion.d/git in their ~/.bashrc (pos

Re: Where should git-prompt.sh be installed?

2012-10-25 Thread Anders Kaseorg
On 10/25/2012 02:02 AM, Danny Yates wrote: Would that not give the impression of "git sh-prompt" being a core command? No more than git-sh-setup, which already works like that. Unless perhaps by “core” you mean “not contrib”. (Now that I think of it, I saw a request from an Ubuntu PPA user

Re: Where should git-prompt.sh be installed?

2012-10-24 Thread Danny Yates
Would that not give the impression of "git sh-prompt" being a core command? If so, that would be poor, IMHO. When I was investigating this last night, I expected to find it (git-prompt.sh) in contrib, although that doesn't make an enormous amount of sense. Ideally, the full path to wherever it

Re: Where should git-prompt.sh be installed?

2012-10-24 Thread Drew Northup
On Wed, Oct 24, 2012 at 8:51 PM, Jonathan Nieder 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 so