Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
8b45118f
Commit
8b45118f
authored
Feb 23, 2015
by
Michał Ordon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Grunt plugin to 0.1.2
parent
677acc3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
grunt.plugin.zsh
plugins/grunt/grunt.plugin.zsh
+7
-5
No files found.
plugins/grunt/grunt.plugin.zsh
View file @
8b45118f
#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 : 2
2 Jul 2013
.
# Last Change : 2
0 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment