mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
Change using .phing_targets file to environment variable. This prevents of creating unnecessary files in repo directory which have to be added to .gitignore.
8 lines
231 B
Bash
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
|