summaryrefslogtreecommitdiff
path: root/plugins/grunt
diff options
context:
space:
mode:
authorMichał Ordon <michal@tehidea.com>2015-02-23 11:43:19 +0000
committerMichał Ordon <michal@tehidea.com>2015-02-23 11:43:19 +0000
commit8b45118f266fd5422f80a7868add48234adc1d30 (patch)
tree878f3cef68e01838dc0bd31d84d85d4e34c32131 /plugins/grunt
parent677acc3a8c14887ceb8e9b8584fd59bc9f4af3e0 (diff)
downloadzsh-8b45118f266fd5422f80a7868add48234adc1d30.tar.gz
zsh-8b45118f266fd5422f80a7868add48234adc1d30.tar.bz2
zsh-8b45118f266fd5422f80a7868add48234adc1d30.zip
Update Grunt plugin to 0.1.2
Diffstat (limited to 'plugins/grunt')
-rw-r--r--plugins/grunt/grunt.plugin.zsh12
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/grunt/grunt.plugin.zsh b/plugins/grunt/grunt.plugin.zsh
index 48f6cb5a2..3f9695177 100644
--- a/plugins/grunt/grunt.plugin.zsh
+++ b/plugins/grunt/grunt.plugin.zsh
@@ -1,4 +1,5 @@
#compdef grunt
+#autoload
# -----------------------------------------------------------------------------
# _grunt
#
@@ -8,11 +9,11 @@
#
# -----------------------------------------------------------------------------
#
-# Version : 0.1.0
+# Version : 0.1.2
# Author : Yonchu <yuyuchu3333@gmail.com>
# License : MIT License
# Repository : https://github.com/yonchu/grunt-zsh-completion
-# Last Change : 22 Jul 2013.
+# Last Change : 20 Aug 2014.
#
# Copyright (c) 2013 Yonchu.
#
@@ -46,7 +47,7 @@
#
# -----------------------------------------------------------------------------
-function _grunt() {
+function __grunt() {
local curcontext="$curcontext" update_policy state
local show_grunt_path update_msg gruntfile opts tasks
@@ -113,7 +114,7 @@ function _grunt() {
# The cache variable name: __grunt_version __grunt_gruntfile __grunt_opts __grunt_tasks
function __grunt_update_cache() {
# TODO
- local version='0.1.0'
+ local version='0.1.2'
local is_updating=0
local gruntfile="$1"
local grunt_info no_update_options cache_path
@@ -177,6 +178,7 @@ function __grunt_get_tasks() {
| grep 'Available tasks' -A 100 \
| grep '^ ' \
| sed -e 's/^[[:blank:]]*//' -e 's/[[:blank:]]*$//' \
+ | sed -e 's/:/\\:/g' \
| sed -e 's/ /:/'
}
@@ -250,4 +252,4 @@ function __grunt_caching_policy() {
(( $#oldp ))
}
-compdef _grunt grunt
+compdef __grunt grunt \ No newline at end of file