Diff
1diff --git a/plugins/grunt/grunt.plugin.zsh b/plugins/grunt/grunt.plugin.zsh
2index 48f6cb5a2e0abb681e4009bb693c4e863363fcb9..3f969517724163e6294f8a1f97281f76595805dd 100644
3--- a/plugins/grunt/grunt.plugin.zsh
4+++ b/plugins/grunt/grunt.plugin.zsh
5@@ -1,4 +1,5 @@
6 #compdef grunt
7+#autoload
8 # -----------------------------------------------------------------------------
9 # _grunt
10 #
11@@ -8,11 +9,11 @@
12 #
13 # -----------------------------------------------------------------------------
14 #
15-# Version : 0.1.0
16+# Version : 0.1.2
17 # Author : Yonchu <yuyuchu3333@gmail.com>
18 # License : MIT License
19 # Repository : https://github.com/yonchu/grunt-zsh-completion
20-# Last Change : 22 Jul 2013.
21+# Last Change : 20 Aug 2014.
22 #
23 # Copyright (c) 2013 Yonchu.
24 #
25@@ -46,7 +47,7 @@
26 #
27 # -----------------------------------------------------------------------------
28
29-function _grunt() {
30+function __grunt() {
31 local curcontext="$curcontext" update_policy state
32 local show_grunt_path update_msg gruntfile opts tasks
33
34@@ -113,7 +114,7 @@ function _grunt() {
35 # The cache variable name: __grunt_version __grunt_gruntfile __grunt_opts __grunt_tasks
36 function __grunt_update_cache() {
37 # TODO
38- local version='0.1.0'
39+ local version='0.1.2'
40 local is_updating=0
41 local gruntfile="$1"
42 local grunt_info no_update_options cache_path
43@@ -177,6 +178,7 @@ function __grunt_get_tasks() {
44 | grep 'Available tasks' -A 100 \
45 | grep '^ ' \
46 | sed -e 's/^[[:blank:]]*//' -e 's/[[:blank:]]*$//' \
47+ | sed -e 's/:/\\:/g' \
48 | sed -e 's/ /:/'
49 }
50
51@@ -250,4 +252,4 @@ function __grunt_caching_policy() {
52 (( $#oldp ))
53 }
54
55-compdef _grunt grunt
56+compdef __grunt grunt