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:
package.json firstpackage-lock.json at all If you are using Zsh's "new" completion system (that is, the one released in the year 🛸2000🛸, which you need to initialize with autoload -Uz compinit; compinit) —and you should— then the following will work:
zstyle ':completion:*' ignored-patterns 'package-lock.json'
Documentation: http://zsh.sourceforge.net/Doc/Release/Completion-System.html#index-ignored_002dpatterns_002c-completion-style
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With