mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
Remove warning lines from phing completion
Remove "Warning:" lines from phing targets list. Warning lines are returned by phing when a target has no tasks or dependencies.
This commit is contained in:
parent
572f362c0c
commit
a1ffa2c965
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
_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}')
|
||||
PHING_TARGETS=$(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|grep -v "Warning:"|awk '{print $1}')
|
||||
compadd $(echo $PHING_TARGETS)
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue