Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no color ls by default, but color grep?
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
dopey
Apprentice
Apprentice


Joined: 10 Feb 2003
Posts: 235

PostPosted: Wed Sep 06, 2006 5:44 pm    Post subject: no color ls by default, but color grep? Reply with quote

Okay,
Can someone explain to me this inconsistency:
In the stable /etc/skel/.bashrc:

#GNU#@alias ls='ls --color=auto'
alias grep='grep --colour=auto'

By default, ls is not colorized, but grep is. What's the logic behind this? If one were colorized, shouldn't the other also be?
It seems odd that pretty much ever since SLS and Slackware days, Linux distributions started configuring colorized ls by default (only in the last few years have distros started shying away from colorized ls by default) and gentoo USED to have colorized ls, but now, it's no longer colorized by default, but grep is? WTF?

And yes, I know how easy it is to customize the .bashrc file for my own tastes. I just find this default rather odd.
Back to top
View user's profile Send private message
metalfan
Apprentice
Apprentice


Joined: 09 Apr 2005
Posts: 260
Location: 127home0sweet0home1 .endofinternet.net

PostPosted: Wed Sep 06, 2006 6:26 pm    Post subject: Reply with quote

ls colors are activated by default (x86).....ive tried to find the location in /etc but im not really sure where.

greets
_________________
please add [SOLVED] to the topic if you found the answer
Back to top
View user's profile Send private message
dopey
Apprentice
Apprentice


Joined: 10 Feb 2003
Posts: 235

PostPosted: Wed Sep 06, 2006 6:34 pm    Post subject: Reply with quote

ls used to be aliased to ls --color=auto by default in /etc/skel/.bashrc. /etc/skel is used to build the user's home directory during user creation. If your user was created before .bashrc was changed to comment out the alias line, that's why you have color ls by default. However, it definitely is no longer the default in /etc/skel/.bashrc and it's not in any other /etc files that I can find.
Back to top
View user's profile Send private message
lazarusrat
Guru
Guru


Joined: 17 Jul 2002
Posts: 305
Location: Lafayette, IN

PostPosted: Wed Sep 06, 2006 6:48 pm    Post subject: Reply with quote

I'm not at home, so I can't check to see if this is default. The gentoo machine I've got access to right now has it in /etc/bash/bashrc (though there are several other aliases there that I know are not default).
_________________
obpiper: pipe menu generator for openbox
obtheme: pipe menu to switch openbox themes
Back to top
View user's profile Send private message
dopey
Apprentice
Apprentice


Joined: 10 Feb 2003
Posts: 235

PostPosted: Wed Sep 06, 2006 7:19 pm    Post subject: Reply with quote

from /etc/bash/bashrc:

#GNU#@alias ls='ls --color=auto'
alias grep='grep --colour=auto'

I checked bash/files directory in portage too and it syncs up with that one.

That line is commented out. :)
Back to top
View user's profile Send private message
Dr. Strangelove
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2006
Posts: 104
Location: Germania

PostPosted: Fri Sep 08, 2006 11:19 am    Post subject: Reply with quote

Code:

#GNU#@alias ls='ls --color=auto'
alias grep='grep --colour=auto'

And another thing that would be nice to have in one file, is to decide between the use of
either American English or British English.
_________________
Gentoo Linux ~amd64, Kernel 3.6-rc5, Enermax Pro82+ 425W, AMD Athlon 64 X2 BE-2400, Infineon PC800 8GB, ASUS M2NPV-VM, MSI 8600GTS DualHead, SSD OCZ Vertex2 60GB, HDD Samsung Spinpoint F1 320GB HD322HJ, ODD BENQ-DW1640, DVB-S TechniSat SkyStar2
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