Results 1 to 3 of 3

Thread: The colour of user@hostname~@: ?

  1. #1
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    15

    The colour of user@hostname~@: ?

    Hello again..
    This time I'm wondering about the colour of the "user@hostname~@:" in the Console? When I ran knoppix from the cd, it used to be cyan(?), after the hdd-install it's just plain white..
    My friends adviced me to edit /home/user/.bash_profile, but I noticed that I didn't even have one! Well my friend sent his one over and I managed to get it into my home folder.. But the colour of user@hostname~@: is still white? How can I change this? What file should I edit/make?

    And by the way, I had to shutdown X (init 3) while I was installing the nvidia drivers.. There I noticed a change of colours.. Did the .bash_profile I created only affect that?

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Portland, OR USA
    Posts
    568
    You should take a look at the Bash Prompt HOW-TO at the Linux Documentation Project -- specifically the section on Colors.

    For example, in order to change the color of the bash prompt to cyan for all users, look for the following line in /etc/profile (as root):

    PS1="\u@\h:\w\\$ "

    Change it to this (additions bolded):

    PS1="\[\033[1;36m\]\u@\h:\w\\$\[\033[0m\] "

    (Dunno about the NVidia part of your question. Nothing radically changed when I installed 'em...)

    If you only want the changes to apply to your user, instead of all users, add the line to ~/.bashrc instead of /etc/profile.

  3. #3
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    15
    Thank you, that was exactly what I was looking for

Similar Threads

  1. Unique Hostname
    By A.Skwar in forum Ideas
    Replies: 23
    Last Post: 01-20-2006, 01:51 PM
  2. change hostname?
    By Valhalla in forum General Support
    Replies: 3
    Last Post: 03-25-2004, 07:53 PM
  3. Where's the colour gone
    By GlennsPref in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 01-18-2004, 07:02 AM
  4. Can't set hostname.
    By WimG in forum Networking
    Replies: 5
    Last Post: 09-27-2003, 04:16 PM
  5. How do I change the hostname?
    By jensen in forum General Support
    Replies: 2
    Last Post: 07-18-2003, 10:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Crucial MX500 1TB 2.5

Crucial MX500 1TB 2.5" SATA III Internal SSD CT1000MX500SSD1

$99.99



Samsung 2.5

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot

$90.00



Samsung 860 EVO 250GB SSD MZ-76E250 2.5

Samsung 860 EVO 250GB SSD MZ-76E250 2.5" SATA III Solid State Drive -

$39.99



Samsung 860 EVO 250GB, SATA III, 2.5

Samsung 860 EVO 250GB, SATA III, 2.5" Internal Solid State Drive - Black...

$30.00



Netac 2TB 1TB 512GB 256GB Internal SSD 2.5inch SATAIII Solid State Drive lot picture

Netac 2TB 1TB 512GB 256GB Internal SSD 2.5inch SATAIII Solid State Drive lot

$549.00



Fanxiang 256GB 512GB 1TB 2TB 4TB SSD Lot 2.5'' SATA Internal Solid State Drive picture

Fanxiang 256GB 512GB 1TB 2TB 4TB SSD Lot 2.5'' SATA Internal Solid State Drive

$42.99



Fanxiang 1/2/5/10Pcs 2.5'' SATA SSD Lot 1TB 2TB 4TB 512GB 256GB TLC Internal SSD picture

Fanxiang 1/2/5/10Pcs 2.5'' SATA SSD Lot 1TB 2TB 4TB 512GB 256GB TLC Internal SSD

$129.99



Micron 1300 MTFDDAK256TDL 256 GB SATA III 2.5 in Solid State Drive picture

Micron 1300 MTFDDAK256TDL 256 GB SATA III 2.5 in Solid State Drive

$24.99



Netac 1TB 512GB 256GB Internal SSD 2.5inch SATA Solid State Drive lot PC Laptop picture

Netac 1TB 512GB 256GB Internal SSD 2.5inch SATA Solid State Drive lot PC Laptop

$42.99



SSD 2.5

SSD 2.5" SATA Hard Drive for Laptop Desktop Windows 10 pro 64 Pro Pre-installed

$42.00