forked from kiss-community/kiss
kiss: better colors
This commit is contained in:
parent
098e20dae6
commit
43205208b1
4
kiss
4
kiss
@ -19,8 +19,8 @@ log() {
|
||||
# '${3:-->}': If the 3rd argument is missing, set prefix to '->'.
|
||||
# '${2:+[1;33m}': If the 2nd argument exists, set the text style of '$1'.
|
||||
# '${2:+[m}': If the 2nd argument exists, reset text formatting.
|
||||
printf '\033[1;32m%s \033[m%s\033[m %s\n' \
|
||||
"${3:-->}" "${2:+[1;33m}$1${2:+[m}" "$2"
|
||||
printf '\033[1;33m%s \033[m%s\033[m %s\n' \
|
||||
"${3:-->}" "${2:+[1;32m}$1${2:+[m}" "$2"
|
||||
}
|
||||
|
||||
die() {
|
||||
|
Loading…
Reference in New Issue
Block a user