From 69fed59e373a116aa8e96eb05122eccbd431bce3 Mon Sep 17 00:00:00 2001 From: karanagarwal12 Date: Sat, 16 Mar 2024 03:49:00 +0530 Subject: [PATCH] colors added, issue #9 --- scripts/color | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/color b/scripts/color index d6a4fe8..aeab8e0 100755 --- a/scripts/color +++ b/scripts/color @@ -9,7 +9,14 @@ color() { declare -A color_mapping=( # TODO: Add more color values # Refer bash color codes + ['black']=30 + ['red']=31 + ['green']=32 + ['yellow']=33 + ['blue']=34 ['magenta']=35 + ['cyan']=36 + ['white']=37 ) if [[ $1 == 'reset' ]]; then @@ -17,4 +24,3 @@ if [[ $1 == 'reset' ]]; then else color 1 ${color_mapping[$1]} fi -