View Full Version : Colors in command line like gentoo
chandler
June 28th, 2007, 12:37 PM
I was wondering if I could implement a coloring system similar to Gentoo/Sabayon. Right now everything is boring white (except when LSing) but I want it all to be colorful i.e. http://dev.gentoo.org/~liquidx/img/ekeys.png Thanks. Distro is Ubuntu 7.04
chandler
June 28th, 2007, 02:35 PM
I figured it out... If anybody ever wants to do something similar: export PS1="\[\e[32;1m\]\u@\[\e[34;1m\]\h:\[\e[35;1m\]\w\[\e[32;1m\]\$ \[\e[0m\]"
For a detailed explanation go to: http://www.ibm.com/developerworks/linux/library/l-tip-prompt/
earobinson
June 28th, 2007, 02:39 PM
neat!
Vorian
June 28th, 2007, 02:44 PM
^.^
Neat trick :)
chandler
June 28th, 2007, 05:36 PM
Thanks... Gentoo's been doing it for a while now. :p Be pretty cool if we could get some browns into the mix for an ubuntu version.
vBulletin® v3.8.0 Release Candidate 2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.