Skip to content

Update FAQ so users can easily beautify their PowerShell#18739

Closed
Dynesshely wants to merge 4 commits into
PowerShell:masterfrom
ForksCollection:master
Closed

Update FAQ so users can easily beautify their PowerShell#18739
Dynesshely wants to merge 4 commits into
PowerShell:masterfrom
ForksCollection:master

Conversation

@Dynesshely
Copy link
Copy Markdown

@Dynesshely Dynesshely commented Dec 7, 2022

PR Summary

Update FAQ so users can easily beautify their PowerShell

PR Context

I always suggest my friends to use PowerShell, then they tried with complain that why their pwsh are not as beautiful as mine, so I added this and next time I can send them only a link.

PR Checklist

@SteveL-MSFT
Copy link
Copy Markdown
Member

SteveL-MSFT commented Dec 7, 2022

I don't think this is a FAQ (which is more targeted for users of this repo), perhaps we can mention oh-my-posh in https://github.com/PowerShell/PowerShell/tree/master/docs/learning-powershell instead?

GitHub
PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

@Dynesshely
Copy link
Copy Markdown
Author

Dynesshely commented Dec 7, 2022

I don't think this is a FAQ (which is more targeted for users of this repo), perhaps we can mention oh-my-posh in https://github.com/PowerShell/PowerShell/tree/master/docs/learning-powershell instead?

GitHub**PowerShell/docs/learning-powershell at master · PowerShell/PowerShell**PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

That's good, I'll move it to https://github.com/PowerShell/PowerShell/tree/master/docs/learning-powershell

GitHub
PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

@Dynesshely Dynesshely closed this Dec 7, 2022
@Dynesshely Dynesshely reopened this Dec 7, 2022
@pull-request-quantifier-deprecated
Copy link
Copy Markdown

This PR has 5 quantified lines of changes. In general, a change size of upto 200 lines is ideal for the best PR experience!


Quantification details

Label      : Extra Small
Size       : +5 -0
Percentile : 2%

Total files changed: 1

Change summary by file extension:
.md : +5 -0

Change counts above are quantified counts, based on the PullRequestQuantifier customizations.

Why proper sizing of changes matters

Optimal pull request sizes drive a better predictable PR flow as they strike a
balance between between PR complexity and PR review overhead. PRs within the
optimal size (typical small, or medium sized PRs) mean:

  • Fast and predictable releases to production:
    • Optimal size changes are more likely to be reviewed faster with fewer
      iterations.
    • Similarity in low PR complexity drives similar review times.
  • Review quality is likely higher as complexity is lower:
    • Bugs are more likely to be detected.
    • Code inconsistencies are more likely to be detected.
  • Knowledge sharing is improved within the participants:
    • Small portions can be assimilated better.
  • Better engineering practices are exercised:
    • Solving big problems by dividing them in well contained, smaller problems.
    • Exercising separation of concerns within the code changes.

What can I do to optimize my changes

  • Use the PullRequestQuantifier to quantify your PR accurately
    • Create a context profile for your repo using the context generator
    • Exclude files that are not necessary to be reviewed or do not increase the review complexity. Example: Autogenerated code, docs, project IDE setting files, binaries, etc. Check out the Excluded section from your prquantifier.yaml context profile.
    • Understand your typical change complexity, drive towards the desired complexity by adjusting the label mapping in your prquantifier.yaml context profile.
    • Only use the labels that matter to you, see context specification to customize your prquantifier.yaml context profile.
  • Change your engineering behaviors
    • For PRs that fall outside of the desired spectrum, review the details and check if:
      • Your PR could be split in smaller, self-contained PRs instead
      • Your PR only solves one particular issue. (For example, don't refactor and code new features in the same PR).

How to interpret the change counts in git diff output

  • One line was added: +1 -0
  • One line was deleted: +0 -1
  • One line was modified: +1 -1 (git diff doesn't know about modified, it will
    interpret that line like one addition plus one deletion)
  • Change percentiles: Change characteristics (addition, deletion, modification)
    of this PR in relation to all other PRs within the repository.


Was this comment helpful? 👍  :ok_hand:  :thumbsdown: (Email)
Customize PullRequestQuantifier for this repository.

1 similar comment
@pull-request-quantifier-deprecated
Copy link
Copy Markdown

This PR has 5 quantified lines of changes. In general, a change size of upto 200 lines is ideal for the best PR experience!


Quantification details

Label      : Extra Small
Size       : +5 -0
Percentile : 2%

Total files changed: 1

Change summary by file extension:
.md : +5 -0

Change counts above are quantified counts, based on the PullRequestQuantifier customizations.

Why proper sizing of changes matters

Optimal pull request sizes drive a better predictable PR flow as they strike a
balance between between PR complexity and PR review overhead. PRs within the
optimal size (typical small, or medium sized PRs) mean:

  • Fast and predictable releases to production:
    • Optimal size changes are more likely to be reviewed faster with fewer
      iterations.
    • Similarity in low PR complexity drives similar review times.
  • Review quality is likely higher as complexity is lower:
    • Bugs are more likely to be detected.
    • Code inconsistencies are more likely to be detected.
  • Knowledge sharing is improved within the participants:
    • Small portions can be assimilated better.
  • Better engineering practices are exercised:
    • Solving big problems by dividing them in well contained, smaller problems.
    • Exercising separation of concerns within the code changes.

What can I do to optimize my changes

  • Use the PullRequestQuantifier to quantify your PR accurately
    • Create a context profile for your repo using the context generator
    • Exclude files that are not necessary to be reviewed or do not increase the review complexity. Example: Autogenerated code, docs, project IDE setting files, binaries, etc. Check out the Excluded section from your prquantifier.yaml context profile.
    • Understand your typical change complexity, drive towards the desired complexity by adjusting the label mapping in your prquantifier.yaml context profile.
    • Only use the labels that matter to you, see context specification to customize your prquantifier.yaml context profile.
  • Change your engineering behaviors
    • For PRs that fall outside of the desired spectrum, review the details and check if:
      • Your PR could be split in smaller, self-contained PRs instead
      • Your PR only solves one particular issue. (For example, don't refactor and code new features in the same PR).

How to interpret the change counts in git diff output

  • One line was added: +1 -0
  • One line was deleted: +0 -1
  • One line was modified: +1 -1 (git diff doesn't know about modified, it will
    interpret that line like one addition plus one deletion)
  • Change percentiles: Change characteristics (addition, deletion, modification)
    of this PR in relation to all other PRs within the repository.


Was this comment helpful? 👍  :ok_hand:  :thumbsdown: (Email)
Customize PullRequestQuantifier for this repository.

@iSazonov
Copy link
Copy Markdown
Collaborator

iSazonov commented Dec 7, 2022

I guess JanDeDobbeleer should be added to exclusions to pass CI.

Comment on lines +105 to +113
### Make PowerShell Beautiful

You can use [oh-my-posh](https://ohmyposh.dev/) and see
its source code in [JanDeDobbeleer/oh-my-posh](https://github.com/JanDeDobbeleer/oh-my-posh).

An Example:

![image](https://user-images.githubusercontent.com/50760269/206097676-58283ed0-d244-4c5c-813d-1218f8bed27f.png)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nothing against oh-my-posh (I use posh-git instead) but does this really belong here in this document. What other 3rd-party tools would want to be listed here?

Also, we already have docs about customizing the shell experience.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nothing against oh-my-posh (I use posh-git instead) but does this really belong here in this document. What other 3rd-party tools would want to be listed here?

Also, we already have docs about customizing the shell experience.

Yeah it feels a little odd to single out oh-my-posh here when there are quite a few projects in the same area (https://github.com/Jaykul/PowerLine, https://github.com/dahlbyk/posh-git, https://github.com/starship/starship).

If the goal is to have a link to send to folks, I'd recommend writing up a markdown gist with your settings and links to projects

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also, we already have docs about customizing the shell experience.

Has the doc any links to third-party tools?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Nothing against oh-my-posh (I use posh-git instead) but does this really belong here in this document. What other 3rd-party tools would want to be listed here?

Also, we already have docs about customizing the shell experience.

You're right. And where are the docs about customizing the shell experience? Tnx.

@sdwheeler
Copy link
Copy Markdown
Collaborator

sdwheeler commented Dec 8, 2022

https://learn.microsoft.com/en-us/powershell/scripting/learn/shell/optimize-shell?view=powershell-7.3

This article provides an overview of the shell features that help users improve their user experience.

@Dynesshely
Copy link
Copy Markdown
Author

So it doesn't look like the changes really helped much, close.

@Dynesshely Dynesshely closed this Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants