Created
June 28, 2014 20:09
-
-
Save marek-saji/3d42144093d60a122da7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__gulp() | |
{ | |
local cur prev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
if ! type gulp >/dev/null 2>&1 | |
then | |
return 0 | |
fi | |
if [[ ${cur} == * ]] | |
then | |
COMPREPLY=( $(compgen -W "$( gulp --tasks | grep ─ | grep -v │ | cut -d\ -f3- )" -- ${cur}) ) | |
return 0 | |
fi | |
} | |
complete -F __gulp gulp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment