To display customised colours for bash prompt
$ PS1="\e[1;32milugc> \e[m"
$ PS1="\e[1;33milugc> \e[m"
$ PS1="\e[1;35milugc> \e[m"
$ PS1="\e[1;36milugc> \e[m"
$ PS1="\e[1;37milugc> \e[m"
$ PS1="\e[1;38milugc> \e[m"
To make the above bash prompt permanently
$ vim ~/.bashrc
comment the old entries with PS1
then add the entry
PS1="\e[1;32milugc> \e[m"
: wq! save and exit
then
$ source ~/.bashrc
To make system wide
$ sudo vim /etc/profile
comment the old entries with PS1
then add the entry
PS1="\e[1;32milugc> \e[m"
: wq! save and exit
then
# source /etc/profile
To set emoji in bash prompt
$ PS1="\e[1;32milugc🎄 \e[m"
PS1="\e[1;32milugc🦌 \e[m"
regards,
T.Dhanasekar