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

Global aliases detected incorrectly in substrings #91

Closed smhmd closed 4 years ago

smhmd commented 4 years ago
Linux manjaro 5.3.18-1-MANJARO #1 SMP PREEMPT Wed Dec 18 18:34:35 UTC 2019 x86_64 GNU/Linux
zsh 5.7.1 (x86_64-pc-linux-gnu)
you-should-use version 1.6.0 installed through https://github.com/zdharma/zplugin

Steps to reproduce the issue

% alias -g n="nvim" # I make it a global alias to use it with sudo
% nvimkaowjqwe # nvim followed by gibberish or an actual command starting with nvim (I have a nvimrc alias for ~/nvim/init.vim)
Found existing global alias for "nvim". You should use: "n"

gist link to your zshrc

I tried it with zsh -f, sourced zplugin and loaded you-should-use and the problem persisted; my zshrc in dotfiles repo is outdated, spare me.

MichaelAquilina commented 4 years ago

Thanks for taking the time to report this issue! The issue should now be fixed (#92 release 1.6.1). Please check the latest release :)