-
-
Notifications
You must be signed in to change notification settings - Fork 802
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
Add option to abbreviate home directory in prompt #386
Comments
Seems reasonable. Using |
Why is this a post-git request? isn't putting the CWD in the prompt outside of the scope of posh-git? |
posh-git 0.7.0, when it releases, will set the user's prompt with one that displays Git status summary info. It will not do this if the user has their own custom prompt function. We get so many questions about - I installed posh-git and then I imported it and I still don't see Git status summary info in my prompt. :-( |
That makes sense, thanks @rkeithhill . |
@JayBazuzi But your question makes me wonder if the default for |
So don't feel like you're pulling in a foreign notion. |
I'm familiar with the @rkeithhill Our thoughts align. As a user, I thought it strange that posh-git changed my prompt. As a matter of fact, I suspected that something was seriously broken when I didn't see my default prompt (I expected the additional git summary, just not the changes to my existing prompt, and it took me a little while to figure out it was a feature, not a bug. In the pending pull request, I defaulted to |
Let me think about the default value for the setting and get @dahlbyk opinion. Setting it to false would probably be the "safer" way to go. |
While we are at it, should we add a |
I'm inclined to go the other direction, at least until 1.0: support |
Sounds good. I'll submit a PR for that tonight. |
PR submitted #393 |
Currently, posh-git abbreviates my home directory to
~
in the prompt. By default, PowerShell prints out the whole path, which I prefer.PS C:\Users\kshaw>
becomes~>
with posh-gitAfter upgrading recently (thanks to Github for Windows), I noticed that my home directory is now abbreviated, and went looking for a
GitPromptSetting
that would allow me to turn off the abbreviation, but to no avail.I'd like to see an
AbbreviateHomeDirectory
(or similar) setting in theGitPromptSettings
that would allow me to enable or disable this home directory abbreviation.The text was updated successfully, but these errors were encountered: