Skip to content

Please remove **all** built-in aliases and put them in a module #5870

@Jaykul

Description

@Jaykul

We've suggested this before in the context of the discussion of the infamous curl alias, and in that context it was not done (although I don't remember why), so let me suggest it again now:

ALL built-in aliases should be removed from the shell.

  1. A module should be created called "CoreAliases" which recreates all the aliases which are left in PowerShell Core when it's run on Linux or Mac OS.
  2. Another module should be created called "CoreWindowsAliases" which builds on top of CoreAliases but adds ls and the other aliases that are currently missing on Linux and Mac OS, but not on Windows.
  3. A third module should be created called "WindowsPowerShellAliases" which further builds on the first two to put back all of the Windows PowerShell aliases for which the commands are present in Core.
  4. All three modules should ship in the installer (like PSReadline), so they're always present.

Then we can stop changing aliases one at a time, and never have another discussion about them.

If people want the aliases, they just import the appropriate module for their situation. If they don't, they do nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Committee-ReviewedPS-Committee has reviewed this and made a decisionIssue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-ExternalThe issue is caused by external component(s).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions