You are not logged in.
Pages: 1
Hey. So right now in my .bashrc I'm using the following lines to color my bash prompt:
PS1='\[\e[1;35m\]\u\[\e[m\] \[\e[1;34m\]\W\[\e[m\] \[\e[1;31m\]> \[\e[0;37m\]'
PS2='>'
so my normal text atm is white, but I'd really love to have it just as my default system text color. The problem is if I reset it with 'tput sgr0' then I have some strange problems. any other way to reset it?
[home page] -- [code / configs]
"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol
Offline
Hey. So right now in my .bashrc I'm using the following lines to color my bash prompt:
PS2='>'
so my normal text atm is white, but I'd really love to have it just as my default system text color. The problem is if I reset it with 'tput sgr0' then I have some strange problems. any other way to reset it?
PS1='\[\e[1;35m\]\u\[\e[m\] \[\e[1;34m\]\W\[\e[m\] \[\e[1;31m\]> \[\e[0;37m\]'
^--------^ This part is turning it white.
What color do you want it?
Offline
yeah I know that part is turning it white. I can successfuly turn it back to my default system color which is sort of a light-blueish color with 'tput sgr0' but that gives me problems. The problem is my default system color isn't one of the standard bash colors that you have the options of changing it to (blue, yellow, red, etc. etc.)
EDIT: Solved. someone on IRC helped. '\[\e[0m\]' was what I needed : )
Last edited by Stythys (2008-06-08 03:00:14)
[home page] -- [code / configs]
"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol
Offline
Pages: 1