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.46k stars 43 forks source link

false positive in case of common command name prefix? #4

Closed emmanueltouzery closed 7 years ago

emmanueltouzery commented 7 years ago

I just got this false positive:

$ gitg
Found existing alias for "git". You should use: "g"

i was using https://github.com/jessevdk/gitg (and that command was correctly launched despite the warning)

MichaelAquilina commented 7 years ago

Ah yes. Should be an easy fix. Will release it this morning when I get a chance

On 20 Jun 2017 7:23 am, "emmanueltouzery" notifications@github.com wrote:

I just got this false positive:

$ gitg Found existing alias for "git". You should use: "g"

i was using https://github.com/jessevdk/gitg

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MichaelAquilina/zsh-you-should-use/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AChvuGe63mStsZD1L_fDCc2dapfDDk7tks5sF2VvgaJpZM4N_Ikp .

MichaelAquilina commented 7 years ago

Fixed with https://github.com/MichaelAquilina/zsh-you-should-use/commit/2a57874d6e4b41c8c632998afd88c2f87c056d5c. Give it a go and close the issue if it works for you :)

emmanueltouzery commented 7 years ago

yes it seems to fix it! I had found another example btw:

$ git mergetool
Found existing alias for "git". You should use: "g"
Found existing alias for "git merge". You should use: "gm"

the second one was obviously bogus. closing the bug now, great!