mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Ommiting comments in profiles
This commit is contained in:
parent
f91736491d
commit
2a9c1d07f6
1 changed files with 16 additions and 16 deletions
|
|
@ -117,7 +117,7 @@ function listMavenCompletions {
|
||||||
local profiles=()
|
local profiles=()
|
||||||
#current pom profiles
|
#current pom profiles
|
||||||
for item in ${POM_HIERARCHY[*]}; do
|
for item in ${POM_HIERARCHY[*]}; do
|
||||||
profiles=($profiles `[ -e $item ] && grep -e "<profile>" -A 1 $item | grep -e "<id>.*</id>" | sed 's?.*<id>\(.*\)<\/id>.*?-P\1?'`)
|
profiles=($profiles `[ -e $item ] && cat $item | sed 's/<!--.*-->//' | sed '/<!--/,/-->/d' | grep -e "<profile>" -A 1 | grep -e "<id>.*</id>" | sed 's?.*<id>\(.*\)<\/id>.*?-P\1?'`)
|
||||||
done
|
done
|
||||||
|
|
||||||
reply=(
|
reply=(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue