This commit is contained in:
Cronos87 2017-04-10 01:55:17 +00:00 committed by GitHub
commit d03057ab89
1 changed files with 24 additions and 0 deletions

24
src/_gulp Normal file
View File

@ -0,0 +1,24 @@
#compdef gulp
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Gulp (http://gulpjs.com/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Yohan Tambè (https://github.com/cronos87)
#
# ------------------------------------------------------------------------------
_gulp_get_command_list () {
cat gulpfile.js | grep "gulp.task" | grep -o "'[a-z:]*'" | sed "s/\'//g"
}
_gulp () {
compadd `_gulp_get_command_list`
}
compdef _gulp gulp