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

Call update_current_git_vars once on startup #111

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

Conversation

jpouellet
Copy link

so the prompt is correct even if the shell is started inside a git dir, rather than only being correct upon first cd.

so the prompt is correct even if the shell is started inside a git dir,
rather than only being correct upon first cd.
@jpouellet
Copy link
Author

In case you were wondering about the motivation... my home directory is not a git repo (lol), but rather some terminal emulators have a "create new terminal in same directory" keyboard shortcut, and I'd like to have the status in such windows immediately. It is nice to have the git status in my prompt in such windows right from the start rather than having to do git status or cd .. && cd - or such just to get it.

tl;dr - it feels like a bug

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.

1 participant