-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module
Description
Related documentation issue: MicrosoftDocs/PowerShell-Docs#1480
Get-Help helpfully lists the verb names and the group they fall into.
However, it doesn't list the - also standardized - alias prefix associated with each verb, such as g for Get and ip for Import, as defined in Approved Verbs for Windows PowerShell Commands.
Having these aliases readily available for reference would help establish a common, consistent language for aliases too, which in the long run would hopefully make people move away from the hotly debated legacy aliases.
It looks like all that is needed is to an .AliasPrefix property to type [System.Management.Automation.VerbInfo].
Current behavior
> Get-Verb | Select-Object -First 3
Verb Group
---- -----
Add Common
Clear Common
Close CommonDesired behavior
> Get-Verb | Select-Object -First 3
Verb Group Alias Prefix
---- ----- ---------
Add Common a
Clear Common cl
Close Common csFor easy reference, here's the current mapping (without group) information:
Add (a)
Approve (ap)
Assert (as)
Backup (ba)
Block (bl)
Checkpoint (ch)
Clear (cl)
Close (cs)
Compare (cr)
Complete (cp)
Compress (cm)
Confirm (cn)
Connect (cc)
Convert (cv)
ConvertFrom (cf)
ConvertTo (ct)
Copy (cp)
Debug (db)
Deny (dn)
Disable (d)
Disconnect (dc)
Dismount (dm)
Edit (ed)
Enable (e)
Enter (et)
Exit (ex)
Expand (en)
Export (ep)
Find (fd)
Format (f)
Get (g)
Grant (gr)
Group (gp)
Hide (h)
Import (ip)
Initialize (in)
Install (is)
Invoke (i)
Join (j)
Limit (l)
Lock (lk)
Measure (ms)
Merge (mg)
Mount (mt)
Move (m)
New (n)
Open (op)
Out (o)
Ping (pi)
Protect (pt)
Publish (pb)
Push (pu)
Read (rd)
Receive (rc)
Redo (re)
Register (rg)
Remove (r)
Rename (rn)
Repair (rp)
Request (rq)
Reset (rs)
Resolve (rv)
Restart (rt)
Restore (rr)
Resume (ru)
Revoke (rk)
Save (sv)
Search (sr)
Select (sc)
Send (sd)
Set (s)
Show (sh)
Skip (sk)
Split (sl)
Start (sa)
Step (st)
Stop (sp)
Submit (sb)
Suspend (ss)
Switch (sw)
Sync (sy)
Test (t)
Trace (tr)
Unblock (ul)
Undo (un)
Uninstall (us)
Unlock (uk)
Unprotect (up)
Unpublish (ub)
Unregister (ur)
Update (ud)
Use (u)
Wait (w)
Watch (wc)
Write (wr)
Environment data
PowerShell Core v6.0.0-beta.4Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module