8000 Add version to PowerShell banner by iSazonov · Pull Request #3916 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 2 commits into from
Jun 7, 2017
Merged

Conversation

iSazonov
Copy link
Collaborator
@iSazonov iSazonov commented Jun 2, 2017

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.

</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>
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

Copy link
Member
@SteveL-MSFT SteveL-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iSazonov
Copy link
Collaborator Author
iSazonov commented Jun 7, 2017

@vors Can you approve and merge?

@lzybkr lzybkr merged commit 0052ebb into PowerShell:master Jun 7, 2017
@iSazonov iSazonov deleted the banner-version branch June 8, 2017 05:11
@iSazonov iSazonov restored the banner-version branch June 20, 2017 17:37
@iSazonov iSazonov deleted the banner-version branch July 20, 2017 11:35
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.

5 participants
0