lukechilds / zsh-better-npm-completion

Better completion for npm
MIT License
464 stars 35 forks source link

Completion functions should always be autoloaded #21

Open MenkeTechnologies opened 4 years ago

MenkeTechnologies commented 4 years ago

Completion functions should always be autoloaded (lazy loaded). Otherwise this slows down startup and increases memory overhead.

A _npm file should be in a dir in fpath with #compdef npm which is only defined when used.

This is zsh best practice.