How to change the color of your BASH prompt
You can change the color of your BASH prompt to green with this command:
export PS1=”\e[0;32m[\u@\h \W]\$ \e[m”
It will change the colour of bash temporarily. To make it permanent then add code in bash_profile page.
vi ~/.bash_profile
and paste above code save the file and you are done.
For other colors please see the attached list:
Color Code
Black 0;30
Blue 0;34
Green 0;32
Cyan 0;36
Red 0;31
Purple 0;35
Brown 0;33
Blue 0;34
Green 0;32
Cyan 0;36
Red 0;31
Purple 0;35
Brown 0;33
Light Color Code
Light Black 1;30
Light Blue 1;34
Light Green 1;32
Light Cyan 1;36
Light Red 1;31
Light Purple 1;35
Light Brown 1;33
Light Blue 1;34
Light Green 1;32
Light Cyan 1;36
Light Red 1;31
Light Purple 1;35
Light Brown 1;33