MicrosoftDocs / PowerShell-Docs

The official PowerShell documentation sources
https://learn.microsoft.com/powershell
Creative Commons Attribution 4.0 International
1.93k stars 1.55k forks source link

Update New-Alias.md to fix typo, improve clarity, and add new example #11150

Closed stevenjudd closed 1 month ago

stevenjudd commented 1 month ago

PR Summary

I found and corrected a typo in the Example 2 explanation. Also, since I was adjusting the Example 2 text, I modified the text for improved clarity. Also, I added Example 3 to show how to use a custom function with an alias since the New-Alias cmdlet will not take a Value other than a cmdlet or an executable in the form of a string value.

PR Checklist

learn-build-service-prod[bot] commented 1 month ago

Learn Build status updates of commit 7edd136:

:white_check_mark: Validation status: passed

File Status Preview URL Details
reference/7.4/Microsoft.PowerShell.Utility/New-Alias.md :white_check_mark:Succeeded View (powershell-7.4)

For more details, please refer to the build report.

For any questions, please:

github-actions[bot] commented 1 month ago

Expectations

Thanks for your submission! Here's a quick note to provide you with some context for what to expect from the docs team and the process now that you've submitted a PR. Even if you've contributed to this repo before, we strongly suggest reading this information; it might have changed since you last read it.

To see our process for reviewing PRs, please read our editor's checklist and process for managing pull requests in particular. Below is a brief, high-level summary of what to expect, but our contributor guide has expanded details.

The docs team begins to review your PR if you request them to or if your PR meets these conditions:

You can always request a review at any stage in your authoring process, the docs team is here to help! You do not need to submit a fully polished and finished draft; the docs team can help you get content ready for merge.

While reviewing your PR, the docs team may make suggestions, write comments, and ask questions. When all requirements are satisfied, the docs team marks your PR as Approved and merges it. Once your PR is merged, it is included the next time the documentation is published. For this project, the documentation is published daily at 3 p.m. Pacific Standard Time (PST).

sdwheeler commented 1 month ago

@stevenjudd Thanks for the update. Can you make the same changes to the other versions?

learn-build-service-prod[bot] commented 1 month ago

Learn Build status updates of commit a9d63ba:

:white_check_mark: Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Utility/New-Alias.md :white_check_mark:Succeeded View (powershell-5.1)
reference/7.2/Microsoft.PowerShell.Utility/New-Alias.md :white_check_mark:Succeeded View (powershell-7.2)
reference/7.4/Microsoft.PowerShell.Utility/New-Alias.md :white_check_mark:Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Utility/New-Alias.md :white_check_mark:Succeeded View (powershell-7.5)

For more details, please refer to the build report.

For any questions, please: