No Description

zsh 593B

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