0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-19 04:01:21 +02:00
ohmyzsh/plugins/gulp/gulp.plugin.zsh

30 lines
513 B
Bash
Raw Normal View History

2014-09-01 15:12:36 +02:00
#!/usr/bin/env zsh
#
# gulp-autocompletion-zsh
#
2014-09-01 15:12:36 +02:00
# Autocompletion for your gulp.js tasks
#
# Copyright(c) 2014 André König <andre.koenig@posteo.de>
# MIT Licensed
#
2014-09-01 15:12:36 +02:00
#
# André König
2019-05-07 20:02:41 +02:00
# GitHub: https://github.com/akoenig
2014-09-01 15:12:36 +02:00
# Twitter: https://twitter.com/caiifr
#
#
# Grabs all available tasks from the `gulpfile.js`
# in the current directory.
#
function _gulp_completion {
compls=$(gulp --tasks-simple 2>/dev/null)
2014-09-01 15:12:36 +02:00
completions=(${=compls})
2014-09-01 15:12:36 +02:00
compadd -- $completions
}
compdef _gulp_completion gulp