From owner-freebsd-questions@FreeBSD.ORG Mon Jan 9 00:19: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 E004B106566C for ; Mon, 9 Jan 2012 00:19:40 +0000 (UTC) (envelope-from gmx@ross.cx) Received: from www81.your-server.de (www81.your-server.de [213.133.104.81]) by mx1.freebsd.org (Postfix) with ESMTP id 9BD4B8FC13 for ; Mon, 9 Jan 2012 00:19:40 +0000 (UTC) Received: from [188.108.237.120] (helo=michael-think) by www81.your-server.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Rk2xe-0006H7-DV; Mon, 09 Jan 2012 01:19:38 +0100 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Drew Tomlinson" , Polytropon References: <4F0A2F01.9020100@mykitchentable.net> <20120109011408.a52e33de.freebsd@edvax.de> Date: Mon, 09 Jan 2012 01:19:20 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michael Ross" Message-ID: In-Reply-To: <20120109011408.a52e33de.freebsd@edvax.de> User-Agent: Opera Mail/11.60 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.97.3/14274/Sun Jan 8 23:24:57 2012) Cc: FreeBSD Questions 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 00:19:41 -0000 Am 09.01.2012, 01:14 Uhr, schrieb Polytropon : > 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). > > > setenv TERM vt220-color setenv CLICOLOR for me to work with my ssh client. No LSCOLORS. Michael