Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
4cc0a263
Commit
4cc0a263
authored
Dec 16, 2013
by
Fräntz Miccoli
Committed by
ncanceill
Jun 13, 2015
Browse files
A paver (Python build and configuration utility) plugin
parent
26c7adf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/paver/paver.plugin.zsh
0 → 100644
View file @
4cc0a263
_paver_does_target_list_need_generating
()
{
[
!
-f
.paver_targets
]
&&
return
0
;
[
pavement.py
-nt
.paver_targets
]
&&
return
0
;
return
1
;
}
_paver
()
{
if
[
-f
pavement.py
]
;
then
if
_paver_does_target_list_need_generating
;
then
paver
--help
2>&1 |grep
'-'
|grep
-v
-e
'--'
|awk
-F
'-'
'{print $1}'
|tr
-d
' '
>
.paver_targets
fi
compadd
`
cat
.paver_targets
`
fi
}
compdef _paver paver
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