aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-21 17:48:00 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-21 17:48:00 +0000
commitefbd557718aeb991266ad1f81dafb792adba007f (patch)
treea830bf5e2e2c01bd2171dfb632006b0da67e2e20 /kiss
parentb94798a504d268a4268a21e9400e60bd40ddd8fd (diff)
downloadcpt-efbd557718aeb991266ad1f81dafb792adba007f.tar.gz
docs: update
FossilOrigin-Name: 7c414b663b0d47a281d8654c1d6f52a7c96d40bf13bec114db8833f7edddefee
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss10
1 files changed, 5 insertions, 5 deletions
diff --git a/kiss b/kiss
index cf2bf2e..e95dd48 100755
--- a/kiss
+++ b/kiss
@@ -14,11 +14,11 @@
log() {
# Print a message prettily.
- # '\033[1;32m': Set text to color '2' and make it bold.
- # '\033[m': Reset text formatting.
- # '${3:-->}': If the 3rd argument is missing, set prefix to '->'.
- # '${2:+}': If the 2nd argument exists, set the text style of '$1'.
- # '${2:+}': If the 2nd argument exists, reset text formatting.
+ # '\033[1;32m' Set text to color '2' and make it bold.
+ # '\033[m': Reset text formatting.
+ # '${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${2:+}" "$2"
}