From owner-freebsd-questions@FreeBSD.ORG Mon Jan 9 02:07:40 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D73CD106566B for ; Mon, 9 Jan 2012 02:07:40 +0000 (UTC) (envelope-from hemi@puresimplicity.net) Received: from just.puresimplicity.net (just.puresimplicity.net [68.77.126.251]) by mx1.freebsd.org (Postfix) with ESMTP id 8798A8FC16 for ; Mon, 9 Jan 2012 02:07:40 +0000 (UTC) Received: from [127.0.0.1] (c-98-228-136-106.hsd1.il.comcast.net [98.228.136.106]) (authenticated bits=0) by just.puresimplicity.net (8.14.3/8.14.3) with ESMTP id q091b2ki022327 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 8 Jan 2012 19:37:03 -0600 (CST) (envelope-from hemi@puresimplicity.net) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.96 at just.puresimplicity.net Message-ID: <4F0A44BB.2050607@puresimplicity.net> Date: Sun, 08 Jan 2012 19:36:59 -0600 From: Josh Tolbert User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4F0A2F01.9020100@mykitchentable.net> <20120109011408.a52e33de.freebsd@edvax.de> In-Reply-To: <20120109011408.a52e33de.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (just.puresimplicity.net [68.77.126.251]); Sun, 08 Jan 2012 19:37:03 -0600 (CST) Subject: Re: How To Enable ls Color? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2012 02:07:40 -0000 On 1/8/2012 6:14 PM, Polytropon wrote: > On Sun, 08 Jan 2012 16:04:17 -0800, Drew Tomlinson wrote: >> I've installed 9.0-RC3 amd64. I'm trying to enable color output for >> ls. I've issued the basic 'ls -Gla' but output is not colored. Yet if >> I can get colorized output by providing color codes (echo >> ^[[34mhello^[[37m produces a blue "hello") at the command line so I know >> my terminal is capable. >> >> Is there some other secret? This is a new install and I'm just trying >> to set things up. > Put > > setenv LSCOLORS ExGxdxdxCxDxDxBxBxegeg > > in the csh's initialisation file (typically ~/.cshrc > for local use, /etc/csh.cshrc for global effect) > and maybe setup an alias: > > alias ls 'ls -FG' > alias ll 'ls -laFG' > > However, ls should provide colored output even > if you don't set the $LSCOLORS variable. It > should work with the default terminal emulation > (cons25 or cons25l1). > From here: http://www.puresimplicity.net/~hemi/freebsd/misc.html CLICOLOR="YES"; export CLICOLOR LSCOLORS="ExGxFxdxCxDxDxhbadExEx"; export LSCOLORS I last updated that page a while ago...But it still seems to be working for me. :) You shouldn't really have to muck around with term type or anything... Cheers, Josh -- Josh Tolbert hemi@puresimplicity.net || http://www.puresimplicity.net/~hemi/ Security is mostly a superstition. It does not exist in nature, nor do the children of men as a whole experience it. Avoiding danger is no safer in the long run than outright exposure. Life is either a daring adventure, or nothing. -- Helen Keller