🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #57232

Re: ls $LS_COLORS was Re: Just wondering.

#57232
From: Rachel Polanskis
Date: Tue, 22 Oct 1996 00:00
48 lines
2342 bytes
In article <Pine.OSF.3.93.961021122629.8383B-100000@sparrow.qut.edu.au>,
	ALIA MCCUTCHEON <n1569325@sparrow.qut.edu.au> writes:
> 
> Hiya Stan,
> I also had this interesting problem when i tried installing RedHat...
> I figured out that if you copy the DIR_COLORS program onto a disk then
> once you've installed RedHat put it in the /bin directory and then in your
> profile (/etc/profile) put the lines:
> 
> eval DIR_COLORS
> alias ls="ls $LS_COLORS"
> 
> or something to that effect.... and you will get the pretty colours you
> like... dont take my word for this... try it out....

Hi,
I think what you need to do is:

1: Ensure you have color_xterm or rxvt compiled.
2: Get the latest Gnu Fileutils package (if you do not have it installed)
   as it contains the colour ls as standard now.
   The home of fileutils is 
ftp://prep.ai.mit.edu/pub/gnu/ 
    but I think is also on sunsite.anu.edu.au

3: in your .profile, or .bash_profile the following string:

eval `/opt/local/gnu/bin/dircolors /etc/DIR_COLORS`
Of course I am on a sun, so the path above is relevant only to that - 
set your path to where the dircolors app lives...

I am careful on my Sun to also test for the existance of an important
binary like ls as well - if my /gnu partition does not mount, 
then it falls back to the traditional ls...

You can also edit the /etc/DIR_COLORS file as a local dotfile:

$HOME/.DIR_COLORS
and set the colours how you like...

rachel

-- 
Rachel Polanskis                 Kingswood, Greater Western Sydney, Australia 
grove@zeta.org.au                http://www.zeta.org.au/~grove/grove.html
r.polanskis@nepean.uws.edu.au    http://www.nepean.uws.edu.au/library/
                Witty comment revoked due to funding cuts
Technical Details
Message-ID: <54i93p$5rm@janis.virago.org.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <Pine.SUN.3.91.961014113257.26463A-100000@jolt>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,31a118d05353dc17
X-Google-Attributes: gid102983,public
From: rachel@virago.org.au (Rachel Polanskis)
Subject: Re: ls $LS_COLORS was Re: Just wondering.
Date: 1996/10/22
Message-ID: <54i93p$5rm@janis.virago.org.au>
X-Deja-AN: 191487108
references: <Pine.SUN.3.91.961014113257.26463A-100000@jolt>
content-type: text/plain; charset=us-ascii
organization: Virago Computer Systems
mime-version: 1.0
reply-to: r.polanskis@nepean.uws.edu.au,grove@zeta.org.au
newsgroups: aus.computers.linux