Date: Wed, 9 Jul 2003 13:19:58 +0100 From: Daniel Bye <dan@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: colour in the console and xterms Message-ID: <20030709121958.GE693@catflap.home.slightlystrange.org> In-Reply-To: <20030709114742.GD693@catflap.home.slightlystrange.org> References: <20030709074033.A1402@sillyrabbi> <20030709114742.GD693@catflap.home.slightlystrange.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030709121958.GE693>
