[Gllug] Coloured bash prompt

Andy Farnsworth farnsaw at stonedoor.com
Thu Apr 22 15:24:19 UTC 2004


-----Original Message-----
From: Tethys
Sent: Thursday, April 22, 2004 3:21 PM

>	colour1=$(tput setf 3)
>	colour2=$(tput setf 2)
>	colour3=$(tput setf 3)
>	colour4=$(tput setf 7)

And even better!

	red=$(tput setf 3)
	blue=$(tput setf 2)
	red=$(tput setf 3)
	green=$(tput setf 7)

Note that I chose the color names randomly so they probably don't
correspond to the actual color displayed in this case.

Interestingly enough, when I tried this on AIX it didn't work while the
COLOR1="\[\033[0;36m\]" version did.

Andy Farnsworth


-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list