Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
283dcab6
Commit
283dcab6
authored
Oct 22, 2014
by
Bryan Banz
Committed by
Marc Cornellà
Feb 17, 2019
Browse files
mvn: colorize [DEBUG] statements in mvn-color
parent
7ebd80fc
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/mvn/mvn.plugin.zsh
View file @
283dcab6
...
...
@@ -35,7 +35,9 @@ mvn-color() {
(
# Filter mvn output using sed. Before filtering set the locale to C, so invalid characters won't break some sed implementations
unset
LANG
LC_CTYPE
=
C mvn
"
$@
"
|
sed
-e
"s/
\(\[
INFO
\]\)\(
.*
\)
/
${
TEXT_BLUE
}${
BOLD
}
\1
${
RESET_FORMATTING
}
\2
/g"
\
LC_CTYPE
=
C mvn
"
$@
"
|
sed
\
-e
"s/
\(\[
INFO
\]\)\(
.*
\)
/
${
TEXT_BLUE
}${
BOLD
}
\1
${
RESET_FORMATTING
}
\2
/g"
\
-e
"s/
\(\[
DEBUG
\]\)\(
.*
\)
/
${
TEXT_RED
}${
BOLD
}
\1
${
RESET_FORMATTING
}
\2
/g"
\
-e
"s/
\(\[
INFO
\]\
BUILD SUCCESSFUL
\)
/
${
BOLD
}${
TEXT_GREEN
}
\1
${
RESET_FORMATTING
}
/g"
\
-e
"s/
\(\[
WARNING
\]\)\(
.*
\)
/
${
BOLD
}${
TEXT_YELLOW
}
\1
${
RESET_FORMATTING
}
\2
/g"
\
-e
"s/
\(\[
ERROR
\]\)\(
.*
\)
/
${
BOLD
}${
TEXT_RED
}
\1
${
RESET_FORMATTING
}
\2
/g"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment