From 0cabd077b6f9b383c83e0b845b9dc3ca2552db2f Mon Sep 17 00:00:00 2001 From: aman vsihwakarma Date: Sat, 16 Mar 2024 23:23:13 +0530 Subject: [PATCH] added more color codes --- scripts/color | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/scripts/color b/scripts/color index d6a4fe8..4142a31 100755 --- a/scripts/color +++ b/scripts/color @@ -9,7 +9,34 @@ color() { declare -A color_mapping=( # TODO: Add more color values # Refer bash color codes - ['magenta']=35 + ['magenta']=35 + ['black']=30 + ['red']=31 + ['green']=32 + ['yellow']=33 + ['blue']=34 + ['cyan']=36 + ['light_gray']=37 + ['dark_gray']=90 + ['light_red']=91 + ['light_green']=92 + ['light_yellow']=93 + ['light_blue']=94 + ['light_magenta']=95 + ['light_cyan']=96 + ['white']=97 + ['default']=39 + ['bold_black']=1;30 + ['bold_red']=1;31 + ['bold_green']=1;32 + ['bold_yellow']=1;33 + ['bold_blue']=1;34 + ['bold_magenta']=1;35 + ['bold_cyan']=1;36 + ['bold_white']=1;37 + ['color_x']=123 + ['color_y']=456 + ['color_z']=789 ) if [[ $1 == 'reset' ]]; then