You are not logged in.

#1 2011-06-10 20:41:47

archer42
Member
Registered: 2011-06-10
Posts: 92

Colored Prompt [solved]

Hi, I changed from Gentoo to archlinux.
From Gentoo I like the nice colored bash prompt, unfortunatly Arch doesnt have this at default so I googled a little bit and created with "dircolors -p > /etc/DIR_COLORS" a File for the colors and copied the gentoo .bashrc into the root dir.

But I still dont have any colors by logging on.. what am I doing wrong?

Regards

Last edited by archer42 (2011-06-13 14:09:06)

Offline

#2 2011-06-10 20:47:39

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: Colored Prompt [solved]

Does this solution work for you?


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2011-06-10 20:58:05

archer42
Member
Registered: 2011-06-10
Posts: 92

Re: Colored Prompt [solved]

No, tried this too. Could it be that colors are disabled?
There only colors by the init scripts and by vim

Regards

Offline

#4 2011-06-10 21:07:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Colored Prompt [solved]

The link bohoomil posted worked for me - both for root and the user - and I don't recall enabling colors or anything like that.
Does

ls --color

show colored output?

Offline

#5 2011-06-10 21:17:22

archer42
Member
Registered: 2011-06-10
Posts: 92

Re: Colored Prompt [solved]

No, still grey/white sad

Offline

#6 2011-06-10 22:07:14

bendersteed
Member
From: Greece
Registered: 2010-10-18
Posts: 85

Re: Colored Prompt [solved]

Have you set USECOLOR="yes" in your rc.conf?


Petite veille d'ivresse, sainte ! quand ce ne serait que pour le masque dont tu as gratifié. Nous t'affirmons, méthode ! Nous n'oublions pas que tu as glorifié hier chacun de nos âges. Nous avons foi au poison. Nous savons donner notre vie tout entière tous les jours.

Voici le temps des Assassins.

Offline

#7 2011-06-11 07:09:51

archer42
Member
Registered: 2011-06-10
Posts: 92

Re: Colored Prompt [solved]

Is set too, could it be that I dont have a colored console because of UTF-8?

Offline

#8 2011-06-11 11:13:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Colored Prompt [solved]

archer42 wrote:

Is set too, could it be that I dont have a colored console because of UTF-8?

Are you using the default Arch configs? Maybe some stuff you migrated from gentoo gets in the way.

Offline

#9 2011-06-11 11:49:46

archer42
Member
Registered: 2011-06-10
Posts: 92

Re: Colored Prompt [solved]

@karol

yes, i just migrated the gentoo .bashrc, but i tried also the .bashrc from /etc/skel so the default and added the dir volor function, both aren't working

Offline

#10 2011-06-13 08:23:16

archer42
Member
Registered: 2011-06-10
Posts: 92

Re: Colored Prompt [solved]

I found the problem...

The Problem was that because of the missing .bas_profile, bash didnt automaticly source .bashrc. so the colour settings didnt load.

Now everything works well how it should with gentoo .bashrc and the .bash_profile from /etc/skel

Offline

#11 2011-06-13 13:55:52

ChoK
Member
From: France
Registered: 2008-10-01
Posts: 346

Re: Colored Prompt [solved]

Please add [solved] to the topic's title.


Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry

Offline

Board footer

Powered by FluxBB