From owner-freebsd-questions Thu Mar 14 1:14: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dns.perimeter.co.za (dns.perimeter.co.za [196.25.164.254]) by hub.freebsd.org (Postfix) with ESMTP id 7944B37B439 for ; Thu, 14 Mar 2002 01:13:40 -0800 (PST) Received: from patrick (loopback.mipjhb [209.212.102.245] (may be forged)) by dns.perimeter.co.za (8.11.1/8.11.1) with SMTP id g2E9DT583006; Thu, 14 Mar 2002 11:13:30 +0200 (SAST) (envelope-from bsd@perimeter.co.za) Message-ID: <006b01c1cb39$78fb15e0$b50d030a@patrick> From: "Patrick O'Reilly" To: "Kirk R. Wythers" , References: <1016035044.1389.11.camel@lorax.forestry.umn.edu> Subject: Re: any bash guru's out there? Date: Thu, 14 Mar 2002 11:20:22 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Kirk R. Wythers" > I would like to add some functionality to bash. I'd like to be able to > distinguish at a glance, a file from a directory, from a sym link in a > console... I've seen this don with different colors in a console or (in > monochrome) with a / at the beginning of directory name, and a @ at the > beginning of a sym link. > > Can someone point me to a location that discusses this? > I've recently set "CLICOLOR=YES" in my profile. make sure your terminal supports color by setting your terminal type to "xterm-color", or whichever you prefer. The advantage of this solution is that ls is smart enough to suppress all the special characters from the output if the output device is not a color terminal, so this WILL NOT break any scripts which use ls. Do a 'man ls' and search for CLICOLOR . Regards, Patrick. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message