From owner-freebsd-questions Sat Sep 28 3:39:40 2002 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 CB46C37B401 for ; Sat, 28 Sep 2002 03:39:38 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8B9243E42 for ; Sat, 28 Sep 2002 03:39:37 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g8SAdaC0004341; Sat, 28 Sep 2002 11:39:36 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g8SAdVEg004340; Sat, 28 Sep 2002 11:39:31 +0100 (BST) Date: Sat, 28 Sep 2002 11:39:31 +0100 From: Matthew Seaman To: Bryan Cassidy Cc: freebsd-questions@FreeBSD.ORG Subject: Re: xterm and colors Message-ID: <20020928103931.GD24417@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , Bryan Cassidy , freebsd-questions@FreeBSD.ORG References: <20020928005410.A37493@insightbb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020928005410.A37493@insightbb.com> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-13.4 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.41 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 On Sat, Sep 28, 2002 at 12:54:10AM -0500, Bryan Cassidy wrote: > I have read a few threads on bsdforums.org about settings the colors > for xterm when i use the "ls" command. I tried what people said to > do but came up with nothing. They really didn't specify to clear how > to do this. When I use the "ls -G" command I get color in xterm > while in X. How do i set the colors so when I just use "ls" I get > the color directories and the rest of colors? I just want the basic > colors that I can get without having to do alot of configuring. I > think it just makes it a little easier to view things in the > terminal when you have a little color to go on. Maybe its me but it > makes it easier on me so any help would be appreciated. In your ~/.cshrc or ~/.shrc or ~/.bashrc (or the appropriate file for which ever shell you use), set up an alias: alias ls ls -G (csh-alikes) or alias ls="ls -G" (sh, bash) You should then get a colourized ls for every shell you start after doing that. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message