From 7bf9423b27b2f5f3b869fcaef1dca4e05d6c6352 Mon Sep 17 00:00:00 2001 From: Ken Matsui <26405363+ken-matsui@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:34:34 -0500 Subject: [PATCH] Shell: prettify log functions --- .config/shell/functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/shell/functions.sh b/.config/shell/functions.sh index ed41a5c..bcb490c 100644 --- a/.config/shell/functions.sh +++ b/.config/shell/functions.sh @@ -7,13 +7,13 @@ command_exists() { } info() { - printf '\033[0;34m[INFO]: %s\033[0m\n' "$*" + printf '\033[0;1;34minfo\033[0m: %s\n' "$*" >&2 } warn() { - printf '\033[0;33m[WARNING]: %s\033[0m\n' "$*" + printf '\033[0;1;33mwarning\033[0m: %s\n' "$*" >&2 } err() { - printf '\033[0;31m[ERROR]: %s\033[0m\n' "$*" + printf '\033[0;1;31merror\033[0m: %s\n' "$*" >&2 } calc() {