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
4fd25920
Commit
4fd25920
authored
Dec 27, 2019
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
paver: add README
parent
e891fbff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
README.md
plugins/paver/README.md
+12
-0
paver.plugin.zsh
plugins/paver/paver.plugin.zsh
+3
-3
No files found.
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
()
{
_paver_does_target_list_need_generating
()
{
[
!
-f
.paver_targets
]
&&
return
0
;
[
!
-f
.paver_targets
]
&&
return
0
[
pavement.py
-nt
.paver_targets
]
&&
return
0
;
[
pavement.py
-nt
.paver_targets
]
&&
return
0
return
1
;
return
1
}
}
_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