Adding colored prompts and warnings in Bash

Here’s an example:

[email protected]:~/android/kernel/patvd$ welcome="tets"
[email protected]:~/android/kernel/patvd$ echo -e 'E[37;44m'"33[1m$welcome33[0m" ; tput sgr0
[email protected]:~/android/kernel/patvd$ echo -e 'E[36;44m'"33[1m$welcome33[0m" ; tput sgr0
[email protected]:~/android/kernel/patvd$ echo -e 'E[35;44m'"33[1m$welcome33[0m" ; tput sgr0
[email protected]:~/android/kernel/patvd$ echo -e 'E[34;44m'"33[1m$welcome33[0m" ; tput sgr0
[email protected]:~/android/kernel/patvd$ echo -e 'E[33;44m'"33[1m$welcome33[0m" ; tput sgr0
[email protected]:~/android/kernel/patvd$ echo -e 'E[32;44m'"33[1m$welcome33[0m" ; tput sgr0
[email protected]:~/android/kernel/patvd$ echo -e 'E[31;44m'"33[1m$welcome33[0m" ; tput sgr0
[email protected]:~/android/kernel/patvd$ echo -e 'E[31;43m'"33[1m$welcome33[0m" ; tput sgr0
[email protected]:~/android/kernel/patvd$ echo -e 'E[31;42m'"33[1m$welcome33[0m" ; tput sgr0
[email protected]:~/android/kernel/patvd$ echo -e 'E[31;41m'"33[1m$welcome33[0m" ; tput sgr0
[email protected]:~/android/kernel/patvd$ echo -e 'E[36;41m'"33[1m$welcome33[0m" ; tput sgr0
[email protected]:~/android/kernel/patvd$ echo -e 'E[37;41m'"33[1m$welcome33[0m" ; tput sgr0[/code]