Help with color combinations


 
Thread Tools Search this Thread
Operating Systems Linux Help with color combinations
# 1  
Old 12-14-2009
Help with color combinations

Hi Team


when i do, echo on my host box it returns (see below)

[root@LAB-A ~]# echo $PS1
[\u@\h \W]\$


I need to set a color comination of my own

for \u means for user : red
for \h means for hostname: blue
for \W means present working directory: pink
for $ means for wht prompt : yellow

Do i need to do a work around in /etc/DIR_COLORS file or do i need to edit on my /etc/bashrc file.

Please guide me to my desired result!

regards
Whizkidash
# 2  
Old 12-14-2009
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Identify Color and send email with same color

Hello mates, I have a requirement where in which I have to mail an output from multiple programs in the same colour as the output from shell script. I have seen a post to mail html in our forum,but my case is I have to first identify which colour the output is in an then mail it to in the ... (10 Replies)
Discussion started by: Kingcobra
10 Replies

2. UNIX for Dummies Questions & Answers

How to change the background color in the init 3 mode(not line color)

Hello, I am using RHEL 6.1 on VMware I am searching for a way to change background color (not line by line color wich one can using tput command) basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies
Login or Register to Ask a Question