3 # Borrowed from grunt-cli
6 # Copyright (c) 2012 Tyler Kellen, contributors
7 # Licensed under the MIT license.
8 # https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
12 # To enable zsh <tab> completion for gulp, add the following line (minus the
13 # leading #, which is the zsh comment character) to your ~/.zshrc file:
15 # eval "$(gulp --completion=zsh)"
17 # Enable zsh autocompletion.
18 function _gulp_completion() {
20 compls=$(gulp --tasks-simple)
21 completions=(${=compls})
22 compadd -- $completions
25 compdef _gulp_completion gulp