mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Removing 'local' declarations from 'listMavenCompletions'. Otherwise zsh went wild
This commit is contained in:
parent
8e52e8946d
commit
ba989c76fd
1 changed files with 2 additions and 1 deletions
|
|
@ -114,7 +114,8 @@ function __pom_hierarchy {
|
||||||
function listMavenCompletions {
|
function listMavenCompletions {
|
||||||
POM_HIERARCHY=()
|
POM_HIERARCHY=()
|
||||||
__pom_hierarchy
|
__pom_hierarchy
|
||||||
local profiles=()
|
|
||||||
|
profiles=()
|
||||||
#current pom profiles
|
#current pom profiles
|
||||||
for item in ${POM_HIERARCHY[*]}; do
|
for item in ${POM_HIERARCHY[*]}; do
|
||||||
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?'`)
|
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?'`)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue