• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 327
  • Last Modified:

Need to add back ground color to my shell

what should be added to my .profile  file in my home directory to change background color of my shell during login .  like green or purple.
0
damodar4u
Asked:
damodar4u
1 Solution
 
t-maxCommented:
what about this? http://www.mono-project.com
0
 
mooodiecrCommented:
This is the link I save to remember what color options are available in Bash.

http://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/

Hope this helps you!
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
damodar4uAuthor Commented:
can some one pls give me a sample code instead of i just want to include to my (.bash_profile) file
instead of sending links that i should go thru one by one
0
 
t-maxCommented:
The idea of providing a link is to let you go through it so you can take what you need.
Here's an example, but you must take a look at the links to understand and choose what you want.
This is an extract from my first link:
Task: How to make the prompt setting permanent

Your new shell prompt setting is temporary i.e. when you logout setting will be lost. To have it set everytime you login to your workstation add above export command to your .bash_profile file or .bashrc file.
$ cd
$ vi .bash_profile
OR
$ vi .bashrc
Append export line:
export PS1="\e[0;31m[\u@\h \W]\$ \e[m"

Save and close the file.
0
 
svsCommented:
Set up your terminal emulator (xterm or the like).  Any \e tricks aren't permanent enough.
0
 
t-maxCommented:
OK, so here's the code for black letters on purple:
export PS1="\e[0;45m\[$PS1\]\$"

Open in new window

And on green:
export PS1="\e[0;42m\[$PS1\]\$"

Open in new window

Hope this is what you need.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now