Prefer the shortest command when there are multiple possible aliases
apaatsio opened this issue · 3 comments
apaatsio commented
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.
mrienstra commented
apaatsio commented
@mrienstra Please, go ahead and have fun.
djui commented
@mrienstra Yes ofc! 🙏