From owner-freebsd-questions@FreeBSD.ORG Sat Nov 1 20:28:54 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFEA816A4CE for ; Sat, 1 Nov 2003 20:28:54 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4BC643FB1 for ; Sat, 1 Nov 2003 20:28:53 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp107-193.lns1.adl1.internode.on.net [150.101.107.193])hA24SoTn060669; Sun, 2 Nov 2003 14:58:51 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: "SWIT" , Date: Sun, 2 Nov 2003 14:58:49 +1030 User-Agent: KMail/1.4.3 References: <200310111243.08231.jason@dictos.com> <035501c3909c$3d1dd8d0$a4b826cb@goo> <001c01c3a082$afab7d30$0100000a@Biggie> In-Reply-To: <001c01c3a082$afab7d30$0100000a@Biggie> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200311021458.49682.malcolm.kay@internode.on.net> Subject: Re: color to files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2003 04:28:55 -0000 On Sun, 2 Nov 2003 00:46, SWIT wrote: > Is there a way to make the directories to show in color when doing a ls= ? > thanks Firstly; don't use the reply button for a new question. It puts your quer= y in a thread on another question and might therefore be missed. In this case it appears in the thread: "Beep when tab cannot incomplete". As others have noted you need the '-G option with ls' or 'an alias' or 'a= n=20 environment variable'. But you also need the capability to display colour= s. The standard non-X virtual terminals (cons25) in FreeBSD have this capabi= lity. If you are in X and using xterm then this also has the capability but by=20 default other programs such as ls are not informed of this because the=20 termcap description for terminal type 'xterm' does not declare it. If you= set the environment variable TERM to xterm-color then it will work. Alternati= vely add the line: XTerm*termName: xterm-color to your .Xdefaults file. Malcolm Kay