mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 01:48:34 -07:00
paver: add README
This commit is contained in:
parent
e891fbff9e
commit
4fd2592007
12
plugins/paver/README.md
Normal file
12
plugins/paver/README.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# 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.
|
@ -1,7 +1,7 @@
|
|||||||
_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 () {
|
||||||
|
Loading…
Reference in New Issue
Block a user