MichaelAquilina / zsh-you-should-use

📎 ZSH plugin that reminds you to use existing aliases for commands you just typed
GNU General Public License v3.0
1.49k stars 44 forks source link

Partial alias use prevents discovery of a better alias #115

Open MTCoster opened 2 years ago

MTCoster commented 2 years ago

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?

Steps to reproduce the issue

  1. Define two alias:
    • alias g='git'
    • alias gl='git pull'
  2. 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

nikklassen commented 1 year ago

I would also like to see this improvement

will-lynas commented 1 year ago

I would too