windows/*: add PowerShell commands and aliases (#11227)

* windows/*: add PowerShell commands and aliases

* clear-host, new-item, remove-item: fix style

* psversiontable, remove-item: fix style

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
Reinhart Previano Koentjoro
2023-10-25 16:00:02 +07:00
committed by GitHub
parent 153b670288
commit bcdc05b986
19 changed files with 235 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
# Get-Alias
> List and get command aliases in the current PowerShell session.
> This command can only be run under PowerShell.
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-alias>.
- List all aliases in the current session:
`Get-Alias`
- Get the aliased command name:
`Get-Alias {{command_alias}}`
- List all aliases assigned to a specific command:
`Get-Alias -Definition {{command}}`
- List aliases that begins with `abc`, excluding those which ends at `def`:
`Get-Alias {{abc}}* -Exclude *{{def}}`