ohmyzsh/plugins/phing/phing.plugin.zsh
Paweł Lenart 572f362c0c Remove .phing_targets file usage
Change using .phing_targets file to environment variable. This prevents
of creating unnecessary files in repo directory which have to be added
to .gitignore.
2014-12-16 08:30:51 +01:00

8 lines
231 B
Bash

_phing () {
if [ -f build.xml ]; then
PHING_TARGETS=$(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|awk '{print $1}')
compadd $(echo $PHING_TARGETS)
fi
}
compdef _phing phing