-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add version to PowerShell banner #3916
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& 8000 rdquo;, 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
Conversation
</data> | ||
<data name="ShellBannerNonWindowsPowerShell" xml:space="preserve"> | ||
<value>PowerShell | ||
Copyright (C) Microsoft Corporation. All rights reserved.</value> | ||
Copyright (C) Microsoft Corporation. All rights reserved. | ||
Version: {0}</value> |
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 think the version proposed by @SteveL-MSFT originally reads nicer:
PowerShell {0}
Copyright (C) Microsoft Corporation. All rights reserved.
For example, here is how python banner looks like
Python 2.7.10 (default, Oct 18 2015, 00:31:39)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
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 think it doesn't look elegant :-) but fixed.
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.
LGTM
@vors Can you approve and merge? |
Close #3895
Motivation
Since we support side-by-side, it makes it easier to see which PowerShell version you started rather than checking $psversiontable or $pshome.
Fix
Add "GitCommitId" to PowerShell banner.
Follow-up work
Based on #3690 later we will change a GitCommitId format.