View previous topic :: View next topic |
Author |
Message |
dopey Apprentice
Joined: 10 Feb 2003 Posts: 235
|
Posted: Wed Sep 06, 2006 5:44 pm Post subject: no color ls by default, but color grep? |
|
|
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 |
|
|
metalfan Apprentice
Joined: 09 Apr 2005 Posts: 260 Location: 127home0sweet0home1 .endofinternet.net
|
Posted: Wed Sep 06, 2006 6:26 pm Post subject: |
|
|
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 |
|
|
dopey Apprentice
Joined: 10 Feb 2003 Posts: 235
|
Posted: Wed Sep 06, 2006 6:34 pm Post subject: |
|
|
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 |
|
|
lazarusrat Guru
Joined: 17 Jul 2002 Posts: 305 Location: Lafayette, IN
|
Posted: Wed Sep 06, 2006 6:48 pm Post subject: |
|
|
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 |
|
|
dopey Apprentice
Joined: 10 Feb 2003 Posts: 235
|
Posted: Wed Sep 06, 2006 7:19 pm Post subject: |
|
|
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 |
|
|
Dr. Strangelove Tux's lil' helper
Joined: 01 May 2006 Posts: 104 Location: Germania
|
Posted: Fri Sep 08, 2006 11:19 am Post subject: |
|
|
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 |
|
|
|