Skip to content

Conversation

nalla
Copy link
Contributor

@nalla nalla commented Aug 20, 2015

If bash is called without the --login function, the git-prompt.sh in
the profile.d directory will not get sourced. Lets fix this behavior by
explicitly checking if this bash instance was called without the --login
argument and if so call the git-prompt.sh.

This fixes git-for-windows/git#290

Signed-off-by: 마누엘 [email protected]

If `bash` is called without the `--login` function, the `git-prompt.sh` in
the `profile.d` directory will not get sourced. Lets fix this behavior by
explicitly checking if this bash instance was called without the `--login`
argument and if so call the `git-prompt.sh`.

This fixes git-for-windows/git#290

Signed-off-by: 마누엘 <[email protected]>
dscho added a commit that referenced this pull request Aug 20, 2015
git-extra: add git-prompt check to bash.bashrc
@dscho dscho merged commit 483da47 into git-for-windows:master Aug 20, 2015
@dscho
Copy link
Member

dscho commented Aug 20, 2015

Awesome contribution. Thanks so much, again!

@nalla nalla deleted the git-prompt-no-login branch August 20, 2015 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

when executing "bash" __git_ps1 is not found

2 participants