-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
Replace or improve $GitPromptSettings #344
Comments
PowerShell v3 has an [ordered] property for PSObject properties, so you can use that too. |
Yup, that is exactly what I prototyped the above with. But as you point out, |
What about grouping related items?
|
I'm inclined to leave as-is for 0.x and then move to Pondering the grouping... what if we defined a type to encapsulate the common text + foreground + background color pattern. That type's |
Agreed on 0.x. One advantage of using [ordered] for 1.x is that I don't think it would be a breaking change - not that I'm necessarily opposed to a breaking change for 1.x if the result is a lot better. :-)
I like that idea but I'm not sure about I could see a function like |
I more mean for each of the components, e.g.
Of course, if we go the composition route proposed in #345 then format/color config might go away. Then again, maybe not - I expect more folks wish to just change colors than rearrange the whole prompt? |
Gotcha. Probably just need to prototype something up after 0.7. It would be nice to have the above for simple customization and #345 for more significant customization. |
.Net 3.5 has |
Partially addressed (ordering) by PR #382. By using a |
Also, unless I'm missing something, the readme.md on this project is saying that the "most common" customization to the prompt is on a property that doesn't seem to exist:
There's no DefaultPromptSuffix property on the GitPromptSettings object. |
The master branch of this repo is used for development and represents the state of the next version - 0.7.0. This version is very close to being finished and published, hopefully by early next week. |
So should this work when installed using ps-get? If I do:
I get an error: |
No, because we haven't released 0.7.0 which contains this change. Hang tight, should be released sometime early next week (I hope). |
Refactoring this issue to represent the general need to improve the config situation. Ideas:
|
I lean towards commands like |
Addressed by PR #513 |
It is really hard to find a setting in the output of $GitPrompSettings:
It would be much easier to find related settings if we used an ordered dictionary which preserves insert order (not available in v2 though):
And yeah, the ordered dictionary is a different type than a PSCustomObject but you can dot the kv pairs in PowerShell as if it were a property e.g.
$GitPromptSettings.EnableFileStatus
.The text was updated successfully, but these errors were encountered: