LinuxQuestions.org
Review your favorite Linux distribution.
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 07-21-2003, 12:46 AM   #1
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Gentoo : DIR_COLORS strange behavior


is someone has DIR_COLORS working well on his gentoo box? Mine seem buggy. Color about different components of fs (I mean symlink, files with exec right, folder) appear with correct colors, but colors based on extension (.exe, .tar, .gz, etc...) doesn't work. By "doesn't work", I mean it appears "gray" like normal color.

DIR_COLORS file is ok (or it seems), I have tried to login using different ways (virtual term in local or ssh local/network or screen) but it's always the same.
No clue 'bout it on Gentoo website as it seems.

Bug this?
 
Old 07-21-2003, 08:58 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
don't know
did you tried su -
to login to root?
and
do you have something like this in your $HOME/. bashrc file
alias ls='ls --color=tty'
 
Old 07-21-2003, 02:42 PM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 46
I have tried to log at root, of course, physically, on the box.
Su - doesn't work either.
I have alias ls="ls --color=auto" in my /etc/profile and no .bashrc

Very very strange, it's just like if Gentoo don't read my DIR_COLORS files 'til the end and stop before "extension" color list.
 
Old 07-21-2003, 03:08 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
try this:
cp DIR_COLORS ~/.coloursrc
then:
eval `dircolors .coloursrc`

if it works, and you want it permanent then add the 'eval' line to your .bashrc (or if you don't have it just create it...)
 
Old 07-21-2003, 05:06 PM   #5
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 46
aaah it works!
ty bulliver

can you explain me why it works, now?
 
Old 07-22-2003, 04:30 AM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
he he,

I don't really know why it works and simply using DIR_COLORS doesn't, but I picked up the hint from here:

http://www.tldp.org/authors/unmaint.html

scroll down the page a bit, it's called "Colours with Linux terminals"
click on "Colour-ls", it's a .txt document, but it's got your answer.
 
  


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
strange directory behavior exodist Linux - Software 1 11-20-2005 04:37 PM
scanf strange behavior chiahsin Linux - Software 2 12-02-2004 06:25 PM
Very Strange Behavior raysr Mandriva 4 08-31-2004 02:06 PM
Strange Behavior andrewb758 Linux - Hardware 5 08-31-2003 02:42 PM
strange behavior abhijit Linux - General 3 07-09-2003 11:25 PM

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

All times are GMT -5. The time now is 10:04 AM.

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