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

Bash prompt works with newest git and shows branch only when found #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Bash prompt works with newest git and shows branch only when found #2

wants to merge 1 commit into from

Conversation

specious
Copy link

I was inspired by your cheatsheet and made some improvements to the bash prompt definition while working on my own bash prompt with git integration.

Now it detects presence of git and doesn't show the branch unless you're in a git repository. The verbatim output of git status must have changed at some point, because now it says nothing to commit, working tree clean.

@su8
Copy link

su8 commented Apr 3, 2018

Doesn't work in zsh.

@specious
Copy link
Author

oh-my-zsh makes it extremely easy to install a zsh prompt with git integration. Here's one that I made called bender.

Did it work with zsh before this change?

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.

2 participants