Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No directory colors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MrIncredible
n00b
n00b


Joined: 16 Oct 2005
Posts: 26

PostPosted: Mon Oct 17, 2005 11:02 pm    Post subject: No directory colors Reply with quote

I have searched everywhere...

Theres a /etc/bash/bashrc that does all kinds of fancy things

But I cant get this automated... everytime I have to run
"dircolors"
and
"alias ls='ls --color'"

Manually! What is the correct way to fix this?
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Tue Oct 18, 2005 12:00 am    Post subject: Reply with quote

You could put those commands in the /etc/bash/bashrc and they should be run automagically for you...
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
MrIncredible
n00b
n00b


Joined: 16 Oct 2005
Posts: 26

PostPosted: Tue Oct 18, 2005 2:56 am    Post subject: Reply with quote

Tried that
Also ~/.bashrc

Doesnt work! I put as the first command "dircolors"
and then "alias ls='ls --color '

Bash still doesnt do anything.
I've tried manuall going "export LS_COLORS=waddahwaddah"
as dircolors do, in bashrc

Still nothing..

Isn't this supposed to work "off-the-shelf"?
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Tue Oct 18, 2005 4:13 am    Post subject: Reply with quote

it works off the shelf here...

do you have a ~/.bash_profile

What terminal(s) have you tried to get this to work? or is this on the console ?
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
MrIncredible
n00b
n00b


Joined: 16 Oct 2005
Posts: 26

PostPosted: Tue Oct 18, 2005 4:31 am    Post subject: Reply with quote

Well, I just got X running and I see it's fine in all my x terminals...

Just the plain text consoles vt/0 .. 6
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Tue Oct 18, 2005 4:41 am    Post subject: Reply with quote

If you look at man bash you will find the order of file execution for various methods of starting a shell.. I think you are missing something in one of the listed rc files in the bash man page that that is preventing colors for being used by default...
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
krakrjak
n00b
n00b


Joined: 08 Feb 2004
Posts: 20

PostPosted: Tue Oct 18, 2005 7:36 am    Post subject: Reply with quote

It is also a problem with new installs for the root user. Usually if you create new users using the -m option then they will get all the files from /etc/skel however on gentoo installations the root user is left out in the cold. try this cd /root cp /etc/skel[.][!.]* .

That should put the gentoo defaults in even for the root user and when root logs in he should have colors. Also the ls --colors is ls --color=auto|always|none.

Good Luck!
Back to top
View user's profile Send private message
MrIncredible
n00b
n00b


Joined: 16 Oct 2005
Posts: 26

PostPosted: Tue Oct 18, 2005 12:20 pm    Post subject: Reply with quote

Aww! Stunning! That must be it...

I never bothered adding other users.. yet!

How about we get this fixed/included in the gentoo install manual?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Oct 18, 2005 2:05 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
not an installation problem
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum