2014-09-01 06:12:36 -07:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
#
|
|
|
|
# gulp-autocompletion-zsh
|
2015-10-05 10:44:00 -07:00
|
|
|
#
|
2014-09-01 06:12:36 -07:00
|
|
|
# Autocompletion for your gulp.js tasks
|
|
|
|
#
|
|
|
|
# Copyright(c) 2014 André König <andre.koenig@posteo.de>
|
|
|
|
# MIT Licensed
|
2015-10-05 10:44:00 -07:00
|
|
|
#
|
2014-09-01 06:12:36 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# André König
|
|
|
|
# Github: https://github.com/akoenig
|
|
|
|
# Twitter: https://twitter.com/caiifr
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Grabs all available tasks from the `gulpfile.js`
|
|
|
|
# in the current directory.
|
|
|
|
#
|
2015-09-28 08:50:35 -07:00
|
|
|
function $$gulp_completion {
|
2015-12-15 04:14:41 -07:00
|
|
|
compls=$(gulp --tasks-simple 2>/dev/null)
|
2014-09-01 06:12:36 -07:00
|
|
|
|
2015-12-15 04:14:41 -07:00
|
|
|
completions=(${=compls})
|
2014-09-01 06:12:36 -07:00
|
|
|
compadd -- $completions
|
|
|
|
}
|
|
|
|
|
2015-09-24 03:51:15 -07:00
|
|
|
compdef $$gulp_completion gulp
|