diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-21 18:10:24 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-21 18:10:24 +0000 |
commit | ee96f67f988f33d115757dea507c5476c7e7e610 (patch) | |
tree | 96b06f150d071c7aca7053164c046233fc338f14 /kiss | |
parent | efbd557718aeb991266ad1f81dafb792adba007f (diff) | |
download | cpt-ee96f67f988f33d115757dea507c5476c7e7e610.tar.gz |
kiss: better colors
FossilOrigin-Name: 13e9bff46a6c7e753c458ab78982b468dfc48d39e277db17659129a745abe675
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() { |