Skip to Content.
Sympa Menu

baslinux - Re: [BL] Adding color to the command prompt

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: 3aoo-cvfd AT dea.spamcon.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] Adding color to the command prompt
  • Date: Sun, 11 Jan 2004 07:20:42 +1300

User X wrote:
>
> Does anyone know how to add color to the command prompt?
> I've edited /etc/profile (PS1='[Linux] \w<\$>') so that
> the command prompt looks a little less drab and would like
> to add colors if possible.

PS1='\033[32m[Linux]\033[m\w<\$>'
' ^^
' 31 red
' 32 green
' 33 yellow
' 34 blue
' 35 pink
' 36 cyan
' 1 bold

Cheers,
Steven




Archive powered by MHonArc 2.6.24.

Top of Page