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
Ohmyzsh
Commits
4fd25920
Commit
4fd25920
authored
Dec 27, 2019
by
Marc Cornellà
Browse files
paver: add README
parent
e891fbff
Changes
2
Show whitespace changes
Inline
Side-by-side
plugins/paver/README.md
0 → 100644
View file @
4fd25920
# Paver
This plugin adds completion for the
`paver`
command-line tool of
[
Paver
](
https://pythonhosted.org/Paver/
)
.
To use it, add
`paver`
to the plugins array of your zshrc file:
```
zsh
plugins
=(
... paver
)
```
The completion function creates a cache of paver tasks with the name
`.paver_tasks`
,
in the current working directory. It regenerates that cache when the
`pavement.py`
changes.
plugins/paver/paver.plugin.zsh
View file @
4fd25920
_paver_does_target_list_need_generating
()
{
[
!
-f
.paver_targets
]
&&
return
0
;
[
pavement.py
-nt
.paver_targets
]
&&
return
0
;
return
1
;
[
!
-f
.paver_targets
]
&&
return
0
[
pavement.py
-nt
.paver_targets
]
&&
return
0
return
1
}
_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