bfbfef9fcf87cfb8ecab8b3ee13a27a9f7e392ae
- Author
- Jesse Donat <donatj@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Cleans up phing plugin.
Diff
1diff --git a/plugins/phing/phing.plugin.zsh b/plugins/phing/phing.plugin.zsh
2index 1f022047c1bbe71990684a4e67ac247ffb970eb5..60f59c3b08e290137cdb09e1da89c2c740bbddcf 100644
3--- a/plugins/phing/phing.plugin.zsh
4+++ b/plugins/phing/phing.plugin.zsh
5@@ -1,15 +1,6 @@
6-_phing_does_target_list_need_generating () {
7- [ ! -f .phing_targets ] && return 0;
8- [ build.xml -nt .phing_targets ] && return 0;
9- return 1;
10-}
11-
12 _phing () {
13 if [ -f build.xml ]; then
14- if _phing_does_target_list_need_generating; then
15- phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|awk '{print $1}' > .phing_targets
16- fi
17- compadd `cat .phing_targets`
18+ compadd $(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|awk '{print $1}')
19 fi
20 }
21