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

Partial use of an alias precludes the detection of a better alias #97

Closed NightMachinery closed 4 years ago

NightMachinery commented 4 years ago

Issue Details

❯ git remote -v
...

found alias for git remote: gr
found alias for git remote -v: grv
~/Base/_Code/Python/betterborg master*
❯ g remote -v
...
# No detection

How is zsh-you-should-use installed?

Antibody

zshrc

antibody bundle "MichaelAquilina/zsh-you-should-use"
export YSU_MESSAGE_POSITION="after"
export YSU_MESSAGE_FORMAT="$(tput setaf 1)found %alias_type for %command: %alias$(tput sgr0)"
export YSU_MODE=ALL #BESTMATCH or ALL
export YSU_IGNORED_ALIASES=("g" "ll")
NightMachinery commented 4 years ago

Actually seems to be a duplicate of https://github.com/MichaelAquilina/zsh-you-should-use/issues/79