MichaelAquilina/zsh-you-should-use

Partial alias use prevents discovery of a better alias

MTCoster opened this issue · 2 comments

Issue Details

Please provide the following details when opening an issue:

Operating System (uname -a)

Darwin <redacted> 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64

zsh version (zsh --version)

zsh 5.9 (x86_64-apple-darwin21.3.0)

you-should-use version (echo "$YSU_VERSION")

1.7.3

How is zsh-you-should-use installed?

  • zplug
  • oh-my-zsh
  • Antigen
  • Other (please specify)

Steps to reproduce the issue

  1. Define two alias:
  • alias g='git'
  • alias gl='git pull'
  1. Try these three examples:
  • $ gl => no YSU output (expected)
  • $ g pull => no YSU output (I expected YSU to suggest gl)
  • $ git pull => YSU suggests gl

gist link to your zshrc

https://gist.github.com/MTCoster/896bb0b57a9d39baab4d83dbca431a7d

I would also like to see this improvement

I would too