Solved

Need to add back ground color to my shell

Posted on 2011-02-18
7
323 Views
Last Modified: 2012-05-11
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
Comment
Question by:damodar4u
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 6

Expert Comment

by:t-max
ID: 34928885
what about this? http://www.mono-project.com
0
 
LVL 6

Expert Comment

by:t-max
ID: 34928902
0
 
LVL 5

Expert Comment

by:mooodiecr
ID: 34928922
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:damodar4u
ID: 34929221
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
 
LVL 6

Expert Comment

by:t-max
ID: 34929418
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
 
LVL 9

Expert Comment

by:svs
ID: 34932311
Set up your terminal emulator (xterm or the like).  Any \e tricks aren't permanent enough.
0
 
LVL 6

Accepted Solution

by:
t-max earned 500 total points
ID: 34932820
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to start Neon 20 157
Unix Command (AIX) 3 49
how to send mail in unix 2 45
bash script problem with multiple processes 11 23
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question