From 02f14a9cb152561a5e44062aac79f3b700403b40 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 13 Jul 2025 06:42:05 +0200 Subject: omz --- home/.oh-my-zsh/plugins/gulp/README.md | 8 ++++++++ home/.oh-my-zsh/plugins/gulp/gulp.plugin.zsh | 29 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 home/.oh-my-zsh/plugins/gulp/README.md create mode 100644 home/.oh-my-zsh/plugins/gulp/gulp.plugin.zsh (limited to 'home/.oh-my-zsh/plugins/gulp') diff --git a/home/.oh-my-zsh/plugins/gulp/README.md b/home/.oh-my-zsh/plugins/gulp/README.md new file mode 100644 index 0000000..4ed2b99 --- /dev/null +++ b/home/.oh-my-zsh/plugins/gulp/README.md @@ -0,0 +1,8 @@ +# gulp plugin + +This plugin adds autocompletion for your [`gulp`](https://gulpjs.com/) tasks. It grabs all available tasks from the `gulpfile.js` in the current directory. + +To use it, add `gulp` to the plugins array of your `.zshrc` file: +``` +plugins=(... gulp) +``` diff --git a/home/.oh-my-zsh/plugins/gulp/gulp.plugin.zsh b/home/.oh-my-zsh/plugins/gulp/gulp.plugin.zsh new file mode 100644 index 0000000..6234302 --- /dev/null +++ b/home/.oh-my-zsh/plugins/gulp/gulp.plugin.zsh @@ -0,0 +1,29 @@ +#!/usr/bin/env zsh + +# +# gulp-autocompletion-zsh +# +# Autocompletion for your gulp.js tasks +# +# Copyright(c) 2014 André König +# MIT Licensed +# + +# +# André König +# GitHub: https://github.com/akoenig +# 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) + + completions=(${=compls}) + compadd -- $completions +} + +compdef _gulp_completion gulp -- cgit v1.2.3