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
feat(shell): allow distinguishing between pwsh and powershell #5478
feat(shell): allow distinguishing between pwsh and powershell #5478
Conversation
051455d
to
e8792a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid unexpected changes to user-configured shell-module configs, please default powershell_indicator
to the value of powershellcore_indicator
. I have provided some suggestions to that end, but please also implement tests for the behavior.
Please also update the English shell module documentation.
I'm assuming you mean default |
Yes. |
Signed-off-by: Gilbert Sanchez <me@gilbertsanchez.com> - Update the config-schema - Apply suggestions from code review - Revert string formatter tests - Rename to use pwsh - Fix config-schema after rename. - Fix tests after rename
843a266
to
b0a4027
Compare
Rebased to hopefully resolve the nightly failed tests which are unrelated to my change but ¯_(ツ)_/¯. This is ready @davidkna. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some suggestions to the docs, but otherwise this looks good.
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
LGTM if you run |
Checking in @davidkna. Let me know if I need anything else. |
Thanks for adding this feature @HeyItsGilbert! |
@HeyItsGilbert thanks for your contribution. However, your change affects another awesome recently added feature #5049. Could you please add starship/src/modules/character.rs Line 40 in fd32e35
|
* Add missing vi for char for Shell::Pwsh #5478 (comment)
Description
pwsh.exe and powershell.exe are currently both identified as powershell. This PR intends to distinguish between the two in the shell module (as well as make the necessary context changes to allow for that)
This is a copy of #5031 which was in draft. Hopefully I did this right....This is a redo of #5156.
Motivation and Context
Distinguishes between pwsh and powershell shell instances. A Windows machine can have both and having a clear distinction can avoid issues.
Closes #5031
Screenshots (if appropriate):
How Has This Been Tested?
Checklist: