From owner-freebsd-questions Tue Apr 24 23:30:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from chmod.ath.cx (CC2-861.charter-stl.com [24.217.115.99]) by hub.freebsd.org (Postfix) with ESMTP id C52CB37B423 for ; Tue, 24 Apr 2001 23:30:15 -0700 (PDT) (envelope-from ajh3@chmod.ath.cx) Received: by chmod.ath.cx (Postfix, from userid 1001) id 95AD8A937; Wed, 25 Apr 2001 01:29:26 -0500 (CDT) Date: Wed, 25 Apr 2001 01:29:26 -0500 From: Andrew Hesford To: Trevin Chow Cc: questions@freebsd.org Subject: Re: Color ls problems Message-ID: <20010425012926.A65186@cec.wustl.edu> References: <5.1.0.14.2.20010424210924.00a8d830@mail.geektank.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5.1.0.14.2.20010424210924.00a8d830@mail.geektank.org>; from tmchow@sfu.ca on Tue, Apr 24, 2001 at 09:12:13PM -0700 X-Loop: Andrew Hesford Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Apr 24, 2001 at 09:12:13PM -0700, Trevin Chow wrote: > I'm using this function (as suggested by someone on the list awhile ago) to > display a colorized "ls": > > function ls > { > command ls -FG ${1+"$@"}; > } > > > This function is located in my /etc/bashrc file. > > For some reason, it's not showing up colorized ls listings with my TERM set > to vt100. > Oddly, if I set it to "linux" it works... What's going on here? First... that function is absolutely ridiculous. Simply create an alias in the bashrc file, of the following form: alias ls="ls -F" Second... vt100 is monochrome. If you're in a console, set the TERM variable to cons25 (assuming your using syscons). If you are running an xterm, the proper type is xterm-color. -- Andrew Hesford ajh3@chmod.ath.cx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message