Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 4 tasks
adamchainz opened this issue Jan 13, 2023 · 1 comment
Open
1 of 4 tasks

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

adamchainz opened this issue Jan 13, 2023 · 1 comment

Comments

@adamchainz
Copy link
Contributor

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?

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

Steps to reproduce the issue

Above

gist link to your zshrc

no

@MichaelAquilina
Copy link
Owner

Seems like something that should at the very least be configurable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants