]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/gulp/gulp.plugin.zsh
6234302c5f4b4ef089635a67522c8d46e3b9b745
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / gulp / gulp.plugin.zsh
1 #!/usr/bin/env zsh
2
3 #
4 # gulp-autocompletion-zsh
5 #
6 # Autocompletion for your gulp.js tasks
7 #
8 # Copyright(c) 2014 André König <andre.koenig@posteo.de>
9 # MIT Licensed
10 #
11
12 #
13 # André König
14 # GitHub: https://github.com/akoenig
15 # Twitter: https://twitter.com/caiifr
16 #
17
18 #
19 # Grabs all available tasks from the `gulpfile.js`
20 # in the current directory.
21 #
22 function _gulp_completion {
23     compls=$(gulp --tasks-simple 2>/dev/null)
24
25     completions=(${=compls})
26     compadd -- $completions
27 }
28
29 compdef _gulp_completion gulp