LinuxQuestions.org
Visit Jeremy's Blog.
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 12-17-2006, 12:22 PM   #1
KoopaTroopa
Member
 
Registered: Aug 2003
Location: Dallas, TX
Distribution: CentOS
Posts: 43

Rep: Reputation: 15
Gentoo console colors in Fedora/Redhat?


Is there a way to setup the environment in Fedora/Redhat to look like it is in Gentoo with the console colors?
 
Old 12-17-2006, 12:53 PM   #2
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
Be a little more specific as to what you want to "colorize".
 
Old 12-17-2006, 07:28 PM   #3
KoopaTroopa
Member
 
Registered: Aug 2003
Location: Dallas, TX
Distribution: CentOS
Posts: 43

Original Poster
Rep: Reputation: 15
I want to colorize my bash console sessions the way they look in Gentoo, preferably for the whole box, every user including root.

Not sure how much more specific I can get...
 
Old 12-17-2006, 07:48 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by KoopaTroopa
I want to colorize my bash console sessions the way they look in Gentoo, preferably for the whole box, every user including root.

Not sure how much more specific I can get...
Maybe some screenshots would be more specific. How does you gentoo console look? It’s not like everyone runs gentoo or even that all gentoo users have the same console settings.

In general, the system-wide bash prompt is in /etc/bashrc or something. Individual ones are in ~/.bashrc or similar. Most “coloring” is done using ANSI escape codes.
 
Old 12-18-2006, 06:44 AM   #5
KoopaTroopa
Member
 
Registered: Aug 2003
Location: Dallas, TX
Distribution: CentOS
Posts: 43

Original Poster
Rep: Reputation: 15
Ok I basically need /root/.bashrc from a gentoo box and I'll be set
 
Old 12-18-2006, 07:13 AM   #6
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
@osor: While it's true that not everyone uses the same console settings, the default Gentoo setup has a colourised prompt, which I haven't seen on the other distros I've tried.

@KoopaTroopa: The variable you're looking for in the bashrc is PS1. There are plenty of places on the net that demonstrate sample colourisations.
 
  


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
colors in console??? alaios Linux - General 1 08-11-2004 08:11 PM
How can I change Fedora console colors richpri Fedora - Installation 1 05-28-2004 01:04 AM
console colors ninadb Slackware 3 04-28-2004 03:31 AM
C and Console colors Gerardoj Programming 3 04-23-2004 12:47 AM
Console colors how-to? PaulBeton Linux - Newbie 5 11-12-2003 03:23 PM

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

All times are GMT -5. The time now is 05:01 PM.

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