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
b7679765
Commit
b7679765
authored
Feb 17, 2019
by
Marc Cornellà
Browse files
mvn: use echoti instead of tput
Avoids forking to tput and some systems don't have tput
parent
5b569149
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/mvn/mvn.plugin.zsh
View file @
b7679765
# mvn-color based on https://gist.github.com/1027800
BOLD
=
$(
tput
bold
)
UNDERLINE_ON
=
$(
tput
smul
)
UNDERLINE_OFF
=
$(
tput
rmul
)
TEXT_BLACK
=
$(
tput
setaf 0
)
TEXT_RED
=
$(
tput
setaf 1
)
TEXT_GREEN
=
$(
tput
setaf 2
)
TEXT_YELLOW
=
$(
tput
setaf 3
)
TEXT_BLUE
=
$(
tput
setaf 4
)
TEXT_MAGENTA
=
$(
tput
setaf 5
)
TEXT_CYAN
=
$(
tput
setaf 6
)
TEXT_WHITE
=
$(
tput
setaf 7
)
BACKGROUND_BLACK
=
$(
tput
setab 0
)
BACKGROUND_RED
=
$(
tput
setab 1
)
BACKGROUND_GREEN
=
$(
tput
setab 2
)
BACKGROUND_YELLOW
=
$(
tput
setab 3
)
BACKGROUND_BLUE
=
$(
tput
setab 4
)
BACKGROUND_MAGENTA
=
$(
tput
setab 5
)
BACKGROUND_CYAN
=
$(
tput
setab 6
)
BACKGROUND_WHITE
=
$(
tput
setab 7
)
RESET_FORMATTING
=
$(
tput
sgr0
)
BOLD
=
$(
echoti
bold
)
UNDERLINE_ON
=
$(
echoti
smul
)
UNDERLINE_OFF
=
$(
echoti
rmul
)
TEXT_BLACK
=
$(
echoti
setaf 0
)
TEXT_RED
=
$(
echoti
setaf 1
)
TEXT_GREEN
=
$(
echoti
setaf 2
)
TEXT_YELLOW
=
$(
echoti
setaf 3
)
TEXT_BLUE
=
$(
echoti
setaf 4
)
TEXT_MAGENTA
=
$(
echoti
setaf 5
)
TEXT_CYAN
=
$(
echoti
setaf 6
)
TEXT_WHITE
=
$(
echoti
setaf 7
)
BACKGROUND_BLACK
=
$(
echoti
setab 0
)
BACKGROUND_RED
=
$(
echoti
setab 1
)
BACKGROUND_GREEN
=
$(
echoti
setab 2
)
BACKGROUND_YELLOW
=
$(
echoti
setab 3
)
BACKGROUND_BLUE
=
$(
echoti
setab 4
)
BACKGROUND_MAGENTA
=
$(
echoti
setab 5
)
BACKGROUND_CYAN
=
$(
echoti
setab 6
)
BACKGROUND_WHITE
=
$(
echoti
setab 7
)
RESET_FORMATTING
=
$(
echoti
sgr0
)
# if found an executable ./mvnw file execute it otherwise execute orignal mvn
mvn-or-mvnw
()
{
...
...
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