Bash

W

Will

Guest
Why, when I set up colours in my .bashrc file and/or .bash_login, do they come out as dull, rather than bright?

Edit : Using this colour chart...I'm leaving the background code as 40, and this is not in an xterm.

colortable.gif
 
T

Testin da Cable

Guest
show me what codes you use to set your prompt then :)
 
W

Will

Guest
Code:
export PS1="\t \u@\h \W $ "
is what my user account is currently running (change $ for # when running root).

When I coloured it, I tried (simple one)
Code:
export PS1="\t \e[31;40m\u@\h \W\e[0m $ "
 
W

Will

Guest
Originally posted by Testin da Cable
Will. wrote on 21-01-03 16:21:
TdC aer teh leet0r :)
Did I mention how much I hate you?:p
 
T

Testin da Cable

Guest
I know you wub meh really :)



mmm so off the top of my head it should be something like this

PS1="\t \[\033[1;40m\][\u@\h \W]\[\033[0m\]$ "


or something. can't access anything with unix/bash atm. only evil nsk's and they aren't any help. hope I didn't make a typo heh :)
 
W

Will

Guest
I'll give that a go. IBM seem to think my way was right, but it did give the wrong colours. There isn't any harm in playing, so I'll try it out in a couple of hours when I get home.
 
T

Testin da Cable

Guest
ah well, we'll see. I really should get some work in. laters :)
 

Users who are viewing this thread

Top Bottom