1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-10-14 15:49:09 +00:00

node: Optimize completions for loading lazily on demand

Move `grunt` and `gulp` to separate completion definitions wrapping
`grunt --completion=zsh` and `gulp --completion=zsh` respectively.

Since the completions are loaded lazily on demand, they avoid the
performance overhead during Zsh initialization.

Additionally, remove `npm` completion since it is already bundled with
Zsh for quite a while.
This commit is contained in:
Indrajit Raychaudhuri
2021-05-15 14:59:31 -05:00
committed by Indrajit Raychaudhuri
parent f84075b8d4
commit 9f37fc9841
4 changed files with 34 additions and 27 deletions

View File

@@ -3,6 +3,9 @@
Provides utility functions for [Node.js][1], loads the Node Version Manager, and
enables [_npm_][2] completion.
This module must be loaded _before_ the _`completion`_ module so that the
provided completion definitions are loaded.
## nodenv
[_nodenv_][5] does one thing well - it is concerned solely with switching