View Full Version : bash colors and icewm themes
ra_rav
18-02-2006, 06:47 PM
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
18-02-2006, 08:40 PM
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
18-02-2006, 08:57 PM
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).
ra_rav
23-02-2006, 02:04 PM
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.
ra_rav
02-03-2006, 02:39 PM
huh gimme an answer
ujjwal
02-03-2006, 05:59 PM
Check this guide -
http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
And check this for some sample color prompts -
http://mboedick.org/code/bash_prompts/
vignesh
02-03-2006, 06:33 PM
By default bash has a few variables set eg colour try changing it there
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.