Browse Source
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.master
Indrajit Raychaudhuri
4 years ago
committed by
Indrajit Raychaudhuri
4 changed files with 34 additions and 27 deletions
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
#compdef grunt |
||||
#autoload |
||||
|
||||
# |
||||
# Grunt completion, delegating to grunt to do all the completion work. |
||||
# |
||||
# Authors: |
||||
# Indrajit Raychaudhuri <irc@indrajit.com> |
||||
# |
||||
|
||||
if (( $+commands[grunt] )); then |
||||
eval "$(grunt --completion=zsh)" |
||||
|
||||
_grunt_completion "$@" |
||||
fi |
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
#compdef gulp |
||||
#autoload |
||||
|
||||
# |
||||
# Gulp completion, delegating to gulp to do all the completion work. |
||||
# |
||||
# Authors: |
||||
# Indrajit Raychaudhuri <irc@indrajit.com> |
||||
# |
||||
|
||||
if (( $+commands[gulp] )); then |
||||
eval "$(gulp --completion=zsh)" |
||||
|
||||
_gulp_completion "$@" |
||||
fi |
Loading…
Reference in new issue