my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
513 B

3 years ago
  1. #!/usr/bin/env zsh
  2. #
  3. # gulp-autocompletion-zsh
  4. #
  5. # Autocompletion for your gulp.js tasks
  6. #
  7. # Copyright(c) 2014 André König <[email protected]>
  8. # MIT Licensed
  9. #
  10. #
  11. # André König
  12. # GitHub: https://github.com/akoenig
  13. # Twitter: https://twitter.com/caiifr
  14. #
  15. #
  16. # Grabs all available tasks from the `gulpfile.js`
  17. # in the current directory.
  18. #
  19. function _gulp_completion {
  20. compls=$(gulp --tasks-simple 2>/dev/null)
  21. completions=(${=compls})
  22. compadd -- $completions
  23. }
  24. compdef _gulp_completion gulp