LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2002, 10:30 PM   #1
medamnit
LQ Newbie
 
Registered: Apr 2002
Location: Australia
Distribution: RedHat
Posts: 16

Rep: Reputation: 0
Prompt Color


Does anyone know how to change the color of the prompt and make it stay each bootup as my root prompt?
i can change it alright, but whenever i restart i lose it.
this must be a simple thing.

thanks you heaps,

medamnit
 
Old 04-30-2002, 10:50 PM   #2
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
See if this link helps out any.

http://www-106.ibm.com/developerwork.../l-tip-prompt/
 
Old 04-30-2002, 11:24 PM   #3
medamnit
LQ Newbie
 
Registered: Apr 2002
Location: Australia
Distribution: RedHat
Posts: 16

Original Poster
Rep: Reputation: 0
cool, thanks. that was a useful and interesting read. i found easier ways then how i've been doing it.

thanks
medamnit
 
Old 05-06-2002, 05:08 AM   #4
medamnit
LQ Newbie
 
Registered: Apr 2002
Location: Australia
Distribution: RedHat
Posts: 16

Original Poster
Rep: Reputation: 0
can i make it that root color is different to any other user that logs on? i'm getting lost w/ this virtual terminal.
so root is yellow and any other user will be green.

thanks,
medamnit
 
Old 05-06-2002, 12:03 PM   #5
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Yeah, what you could do is edit the user's .bash_profile in their home directory and change the PS1= line to what you choose theirs to be. Since .bash_profile is higher in priority than /etc/profile it'll be used first if found. Just let the root account default to /etc/profile. If you don't have a .bash_profile in your user's dir, just copy the /etc/profile over to your user home and rename it to .bash_profile and change the options as desired.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Prompt Color init_linux Linux - General 2 09-08-2005 03:20 AM
help! bash command prompt font/color change richiangpan9 Linux - Newbie 3 04-24-2005 12:34 PM
[COLOR=red]ENCORE WIRELESS PCI Card 802.11b [/COLOR] enrique145 Linux - Hardware 3 07-07-2004 03:31 PM
escape sequence for changing color of prompt killer_bunny Linux - General 1 02-10-2004 08:40 PM
[COLOR=seagreen]HELP-want to use Kickstart/rh7.2 on a notebook[/COLOR] verbali Linux - Newbie 1 05-13-2002 02:59 PM


All times are GMT -5. The time now is 04:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration