You are not logged in.
Pages: 1
I was messing around with my ~/.bashrc to add some colors to it. For some reason, all the colors are faded. When I use white, it is grey. When I use green, its more of a grey cyan. Also, the second line of my first bash prompt never gets the specified colors. Forgive me as I just started using Linux recently. Any suggestions?
My ~/.bashrc:
FONT_COLOR_GREEN="\[\e[0;32m\]"
FONT_COLOR_WHITE="\[\e[0;37m\]"
alias ls="ls --color=auto"
PS1="$FONT_COLOR_GREEN┌─[\w]\n└─[\u@\H]>$FONT_COLOR_WHITE "
Last edited by magneticnorth (2010-06-15 07:02:37)
Offline
Try to remove the surrounding brackets in your font definitions, i.e.
FONT_COLOR_GREEN="\e[0;32m"
FONT_COLOR_WHITE="\e[0;37m"
This appears to work here (but I don't exactly know why ).
Last edited by bernarcher (2010-06-15 07:31:45)
To know or not to know ...
... the questions remain forever.
Offline
I've tried that before, and tried it again just now. No luck here. My greens and whites look like a really dulled down / grayed out version of what is here: http://wiki.archlinux.org/index.php/Color_Bash_Prompt
Offline
Are you using an .Xdefaults file?
Offline
Yes I am. *colorN settings and URxvt settings. Nothing that really stands out though.
Offline
Could the color settings be the issue? If you post the file, it might help...
Offline
@benarcher: The surrounding brackets are necessary to denote a non printable character to bash, otherwise it won't be able to correctly calculate the length of the prompt string.
Some terminals use the same font with different colors to for "normal" and "bold" modes. Try these bold variants:
FONT_COLOR_GREEN="\[\e[1;32m\]"
FONT_COLOR_WHITE="\[\e[1;37m\]"
Offline
Sorry, I can't wgetpaste my Xdefaults because my laptop isn't connected to the internet. I am posting this from my work PC, but unable to connect my laptop to the internet here.
My *colorN's are that Jason Ryan guy's (if I remembered his name correctly) that seem to be pretty popular. My URxvt changes are title, borderLess, buffered, cursorBlink, saveLines, background (black), foreground (white), transparent (true), tintColor (#0A0A0A), scrollstyle, and scrollBar.
If anything, I thought the tint may have affected the text colors, but that only affects the background.
@hbekel: I tried bold as suggested. Now it is a bold dull green and gray. Haha.
Edit: By the way, I think I am using that rxvt-unicode-256color package. Well, that is what I installed. I run the daemon in my xinitrc, then I just start urxvtc. I don't really see any indication that it is the 256color one instead of the normal one though.
Last edited by magneticnorth (2010-06-15 08:31:10)
Offline
My *colorN's are that Jason Ryan guy's (if I remembered his name correctly) that seem to be pretty popular.
Lol.
I think you have found your problem...
Offline
Haha. Woops! I didn't even look at who I was responding to when I said that.
I did not realize that *colorN's even affect the bash color codes.
Thanks for the help. Although, I still do have that issue where my second line of my first bash prompt isn't colored properly. Subsequent prompts are fine though.
Offline
Pages: 1