Skip to content

Prefer the shortest command when there are multiple possible aliases #62

Description

@apaatsio

Let's define two "overlapping" aliases (I'm using these via https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git)

alias g='git'
alias gsta='git stash save'

Current behavior

$ git stash save                                                                                                          
Alias tip: g stash save

Preferred behavior

$ git stash save                                                                                                          
Alias tip: gsta

gsta is 4 characters and g stash save is 12 characters, so gsta should be preferred.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions