Skip to content

Aliases that are like verb-noun should also show to the command they are aliasing #25616

@kilasuit

Description

@kilasuit

Prerequisites

Steps to reproduce

I implemented some aliases for some Winget commands to singularise them

In running get-alias I'd expect them to properly be displayed like a short hand alias

Or be a user configurable option perhaps via $PSStyle without needing the user to
check what the ReferencedCommand command is

Expected behavior

get-alias twgus,Test-WinGetUserSettings

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           twgus -> Test-WinGetUserSetting                    1.9.25190  Microsoft.WinGet.Client
Alias           Test-WinGetUserSettings -> Test-WinGetUserSetting  1.9.25190  Microsoft.WinGet.Client

Actual behavior

get-alias twgus,Test-WinGetUserSettings


CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           twgus -> Test-WinGetUserSetting                    1.9.25190  Microsoft.WinGet.Client
Alias           Test-WinGetUserSettings                            1.9.25190  Microsoft.WinGet.Client

Error details

Environment data

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      6      0      preview.4

Visuals

Image

Metadata

Metadata

Assignees

Labels

WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility moduleWG-ReviewedA Working Group has reviewed this and made a recommendation

Type

No type

Projects

Status

Reviewed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions