LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-13-2004, 01:02 PM   #1
vito_huang
Member
 
Registered: Oct 2004
Posts: 68

Rep: Reputation: 15
change color


does anybody know how to change the color in the bash(not in x-windows), i mean change the background and the color of the font.and how can i change this:
[root@localhost]$
to something custome like [youname]$
thanks
 
Old 11-13-2004, 01:21 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You need to change the PS1 value of your shell which can include colour escape codes - ie this is mine:
rossy - trigger - Sat Nov 13 19:18:44
~> echo $PS1
\[\033[0;31m\]\u - \h - \d \t\n\w> \[\033[0m\]
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change the font color Drunkalot Linux - General 2 08-09-2005 10:37 PM
Change background color chingyenccy Linux - Newbie 6 01-23-2005 03:17 AM
ls --color 'color change' ekdya Linux - General 1 10-06-2003 03:47 PM
change font color...no NOT in X centr0 Slackware 4 05-01-2003 03:29 AM
how to change bg and fg color in emacs linux_rookie Linux - Software 1 06-23-2001 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration