Skip to content

Fish style abbreviations #1753

Closed
Closed

Description

Description of the new feature/enhancement

Powershell doesn't allow creating an alias called gco that performs git checkout. The fish shell offers a slightly different feature called abbreviations. When you define an abbreviation named gco, writing gco will be replaced by git checkout inside the command prompt whenever you hit enter or space. I think such feature will be a great addition to Powershell

Proposed technical implementation details (optional)

Activity

  1. ghost added
    Needs-Triage 🔍It's a new issue that core contributor team needs to triage.
    on Aug 16, 2020
  2. SeeminglyScience commented on Aug 16, 2020

    @SeeminglyScience
    Collaborator
  3. lzybkr commented on Aug 24, 2020

    @lzybkr
    Contributor

    It should be simple to tweak this sample to do this.

  4. daxian-dbw commented on Oct 5, 2020

    @daxian-dbw
    Member

    Roey Darwish Dror (@r-darwish) This should be an enhancement to PowerShell engine, instead of in PSReadLine. You are welcome to join the discussion in PowerShell/PowerShell#12962

  5. lzybkr commented on Oct 5, 2020

    @lzybkr
    Contributor

    Dongbo Wang (@daxian-dbw) IMO this is more of an editor feature (command line or other) that shouldn't require any PowerShell engine support.

  6. daxian-dbw commented on Nov 12, 2020

    @daxian-dbw
    Member

    Jason Shirk (@lzybkr) Sorry for missing your comment. I agree that having this support in PSReadLine may be better as that would enforce the abbreviation to be an interactive feature only, which is not supported in script execution.
    I have captured your comment in the corresponding PS issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions