bash colors and icewm themes

Status
Not open for further replies.

ra_rav

Broken In
I innstalled knoppix 4.0 to y hd and have folloeing problems:

I wnna change color of prompt of my bash to green or sth else how to do it

I use icew as my desktop manger but i am unable to use themes as the normal user only root is able to switch between various thees. :!:
 

mediator

Technomancer
Hi there...ur havin same icon as me...thas cheating..huh..just kiddin!

OK change the text color!type

echo -e "\033[33m".......brown fireground
echo -e "\033[32m".......green foreground
echo -e "\033[31m".......blood red foregorund
echo -e "\033[37m".......grey
echo -e "\033[36m".......blue
echo -e "\033[35m".......purple
echo -e "\033[34m".......dark blue

echo -e "\033[38m".......foreground underlined

....checkout 4 white foregound urself by changing last 2 values!

Now to change backgorund..employe vlaue greater than 40
echo -e "\033[40m"...black background
echo -e "\033[41m"....red background
echo -e "\033[42m"....green bakground!


To make the foregorund thick issue
echo -e "\033[1m"

To normalise everythin issue
echo -e "\033[0m"

I hope this helps....mediator!!
 

ujjwal

Padawan
Check whether the icewm themes have been installed globally (in /usr/share/icewm/themes or /usr/local/share/icewm/themes). Also check that the same directory can be read by normal users (ls -l in that directory should give drwxr-xr-x for all the directories within).
 
OP
R

ra_rav

Broken In
I didnt mean this

thanks ujjwal for restoring my icewm themes, actually i did dis in a diff way but u provided me the trick.

well I had asked about how 2 change the color of the bash prompt which appears(somewhat) like this: "usr@host[/]" by d change of color i dont want to change d color of of the commands which i typ.
 

ujjwal

Padawan
Check this guide -

*www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html

And check this for some sample color prompts -

*mboedick.org/code/bash_prompts/
 
Status
Not open for further replies.
Top Bottom