Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-extra: add git-prompt check to bash.bashrc #72

Merged
merged 1 commit into from
Aug 20, 2015
Merged

git-extra: add git-prompt check to bash.bashrc #72

merged 1 commit into from
Aug 20, 2015

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