From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 05:20:00 2003 Return-Path: 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 73A3D37B401 for ; Wed, 9 Jul 2003 05:20:00 -0700 (PDT) Received: from catflap.home.slightlystrange.org (pc4-cmbg1-4-cust87.cmbg.cable.ntl.com [80.6.127.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0C3D43F85 for ; Wed, 9 Jul 2003 05:19:59 -0700 (PDT) (envelope-from danielby@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 4.20) id 19aDvS-0000OV-I6 for freebsd-questions@freebsd.org; Wed, 09 Jul 2003 13:19:58 +0100 Date: Wed, 9 Jul 2003 13:19:58 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20030709121958.GE693@catflap.home.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <20030709074033.A1402@sillyrabbi> <20030709114742.GD693@catflap.home.slightlystrange.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ILuaRSyQpoVaJ1HG" Content-Disposition: inline In-Reply-To: <20030709114742.GD693@catflap.home.slightlystrange.org> User-Agent: Mutt/1.4.1i Sender: Daniel Bye Subject: Re: colour in the console and xterms X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dan@slightlystrange.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 12:20:00 -0000 --ILuaRSyQpoVaJ1HG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 09, 2003 at 12:47:42PM +0100, Daniel Bye wrote: > On Wed, Jul 09, 2003 at 07:40:33AM -0400, William O'Higgins wrote: > > I am trying to migrate to FreeBSD from Linux, but some things just > > aren't working the way I'd like. > >=20 > > When I launch an xterm it honours my .bashrc, and I get my custom promp= t, > > which includes colour, but no other colour seems to work - not vim, not > > ls -G, not mutt. > >=20 > > In the console, however, I never get the prompt or the aliases specified > > in my .bashrc, and I never get colour. Any pointers? Thanks. Sorry - hit send too early. To get the console bits working, you need also to create a ~/.bash_profile, from which you source ~/.bashrc. When started as a login shell, bash looks for ~/.bash_profile, not ~/.bashrc. When started as an interactive subshell, which is what happens when you start xterm, it looks for ~/.bashrc. This way, you can logically separate setup that only needs to be done once per login session (exporting certain env variables, setting up ssh-agent, etc), and things that can be set each time a shell starts up. (All I do with my ~/.bashrc is read a file of shell aliases, and source the system-wide /etc/bashrc, where I define suitable globals like $PS1, etc.) As for the colour, I'm afraid I don't know - my $TERM is the default cons25, and colour works just fine with `ls -G'. HTH Dan >=20 > Make a ~/.Xdefaults file, that contains at least this: >=20 > XTerm*termName: xterm-color >=20 > You can also customise geometry, background and foreground colour, > scrollbar, etc. Check out man xterm for the gory details. --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --ILuaRSyQpoVaJ1HG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/DAhuhvzwOpChvo8RAgIGAKDaGRinTd0Q4GuUYPcTpTY56q6SfwCeOXpW s47zEn44E3AGClrXesGTJe0= =XW4t -----END PGP SIGNATURE----- --ILuaRSyQpoVaJ1HG--