Subject: Re: Two X servers running simultaneously using wscons
To: Andrew Brown <atatat@atatdot.net>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 04/09/2002 01:31:00
On Tue, 9 Apr 2002 00:54:13 -0400 Andrew Brown <atatat@atatdot.net> wrote:
> >Can anyone tell me why my prompt in
> >xterms doesn't reflect the prompt in my .profile? When I log in, I get
> >a prompt like "jklowden@home.schemamania.org$", but every xterm starts
> >off with "bash-2.04$ " until I issue ". .profile".
>
> the latest bash (2.05) doesn't seem to read .profile. the easy
> solution is to add ". .profile" to the bottom of your .bashrc.
Thanks for the tip, Andrew.
At the moment, I don't even have a .bashrc. If I log in at the console or
via ssh from another box, I get the expected prompt. It's only the xterms
that pick up the default bash prompt. I would have thought I'm doing
something silly in my .xinitrc or something that's goofing up the
environment before X starts. Or am I being dense?
Just for giggles, I've attached a comparison of the two environments.
Thanks again,
--jkl
$ diff -u tty.env x.env
--- tty.env Tue Apr 9 01:14:24 2002
+++ x.env Tue Apr 9 01:14:12 2002
@@ -1,17 +1,20 @@
PWD=/usr/users/home/jklowden
+WINDOWID=142606458
HOSTNAME=lowden
REPLYTO=jklowden@schemamania.org
-PS1=\u@\H\$
USER=jklowden
MACHTYPE=i386--netbsd
LC_ALL=POSIX
EDITOR=nedit
+COLORTERM=gnome-terminal
+DISPLAY=:0
+SHLVL=3
LOGNAME=jklowden
-SHLVL=1
+SESSION_MANAGER=local/lowden:/tmp/.ICE-unix/256
SHELL=/usr/pkg/bin/bash
HOSTTYPE=i386
OSTYPE=netbsd
HOME=/usr/users/home/jklowden
-TERM=vt220
+TERM=xterm
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R6/
bin:/usr/local/sbin:/usr/local/bin _=/usr/bin/env