From owner-freebsd-questions Wed Mar 22 15: 1:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from tp98.catv.szabinet.hu (tp98.catv.szabinet.hu [195.184.161.98]) by hub.freebsd.org (Postfix) with ESMTP id BEC2C37C732 for ; Wed, 22 Mar 2000 15:01:27 -0800 (PST) (envelope-from witch@tp98.catv.szabinet.hu) Received: (from witch@localhost) by tp98.catv.szabinet.hu (8.9.3/8.9.3) id AAA82920; Thu, 23 Mar 2000 00:01:18 +0100 (CET) (envelope-from witch) Date: Thu, 23 Mar 2000 00:01:16 +0100 (CET) From: Rene Scott Reply-To: rene@tp98.catv.szabinet.hu To: R Joseph Wright Cc: Matthew Jonkman , freebsd-questions@FreeBSD.ORG Subject: Re: Shell Color Coding In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mar 21 R Joseph Wright wrote: > On Tue, 21 Mar 2000, Matthew Jonkman wrote: > > > A while ago I saw a little app that would color code the files and > > directories in a shell. I think it was on a linux box which probably does > > that by default. > > > > Does anyone know of a similar deal for freebsd? Seems like that would save a > > boat-load of time scanning for certain things in ls outputs. > > > I use "gnuls" (/usr/ports/misc/gnuls). > Then I added the line [alias ls='gnuls --color=always'] to ~/.profile and > ~/.bashrc. If you're not using bash, put the alias in whatever shell > dotfiles you have. Maybe a better approach to define a function like function ls { gnuls --color=auto $@ } And with 'alias ls='gnuls --color=always' the following shell code on the command line should fail: for i in `ls`; do ... done Rene > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > -- UNIX was never designed to keep people from doing stupid things, because that policy would also keep them from doing clever things. (Doug Gwyn) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message