From owner-freebsd-questions@FreeBSD.ORG Mon Jan 9 00:14:11 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 6DCF3106567E for ; Mon, 9 Jan 2012 00:14:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 2EE808FC19 for ; Mon, 9 Jan 2012 00:14:10 +0000 (UTC) Received: from r56.edvax.de (port-92-195-26-82.dynamic.qsc.de [92.195.26.82]) by mx02.qsc.de (Postfix) with ESMTP id 916AD1E14E; Mon, 9 Jan 2012 01:14:08 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q090E8Uj003294; Mon, 9 Jan 2012 01:14:08 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 9 Jan 2012 01:14:08 +0100 From: Polytropon To: Drew Tomlinson Message-Id: <20120109011408.a52e33de.freebsd@edvax.de> In-Reply-To: <4F0A2F01.9020100@mykitchentable.net> References: <4F0A2F01.9020100@mykitchentable.net> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: How To Enable ls Color? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2012 00:14:11 -0000 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). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...