remove file from zsh autocomplete

Viewed 244

if I type

vim pack

and hit tab zsh autocompletes to package-lock.json, but 10 times out of 10 I would rather it complete to package.json as the first option.

How can I either:

  • make it autocomplete to package.json first
  • stop it completing package-lock.json at all
1 Answers
Related