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.41k stars 44 forks source link

Don’t report both shell alias and Git alias #121

Open adamchainz opened 1 year ago

adamchainz commented 1 year ago

Issue Details

When running a command that has both a shell alias and a Git alias, zsh-you-should-use prints two “you should use” messages:

$ git diff --cached
Found existing alias for "git diff --cached". You should use: "gdc"
Found existing git alias for "diff". You should use: "git d"

I think it would be nicer to just show the Shell alias in this case, because it’s shorter. It seems probably that if there’s a matching shell alias, that would be the user’s preference.

Please provide the following details when opening an issue:

Operating System (uname -a)

macOS

zsh version (zsh --version)

5.8.1

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

1.7.3

How is zsh-you-should-use installed?

Steps to reproduce the issue

Above

gist link to your zshrc

no

MichaelAquilina commented 1 year ago

Seems like something that should at the very least be configurable