Skip to content

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