gulp: fix completion function name

Fixes #6620
This commit is contained in:
Marc Cornellà 2019-04-08 23:14:00 +02:00 committed by GitHub
parent 30594886bf
commit 170575379e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,11 +19,11 @@
# Grabs all available tasks from the `gulpfile.js` # Grabs all available tasks from the `gulpfile.js`
# in the current directory. # in the current directory.
# #
function $$gulp_completion { function _gulp_completion {
compls=$(gulp --tasks-simple 2>/dev/null) compls=$(gulp --tasks-simple 2>/dev/null)
completions=(${=compls}) completions=(${=compls})
compadd -- $completions compadd -- $completions
} }
compdef $$gulp_completion gulp compdef _gulp_completion gulp