From owner-freebsd-questions Thu Jun 1 13:58:46 2000 Delivered-To: freebsd-questions@freebsd.org Received: from web214.mail.yahoo.com (web214.mail.yahoo.com [128.11.68.114]) by hub.freebsd.org (Postfix) with SMTP id 3CF4B37B713 for ; Thu, 1 Jun 2000 13:58:44 -0700 (PDT) (envelope-from bsd_usr@yahoo.com) Received: (qmail 15412 invoked by uid 60001); 1 Jun 2000 20:58:39 -0000 Message-ID: <20000601205839.15411.qmail@web214.mail.yahoo.com> Received: from [209.179.211.217] by web214.mail.yahoo.com; Thu, 01 Jun 2000 13:58:39 PDT Date: Thu, 1 Jun 2000 13:58:39 -0700 (PDT) From: Joey Garcia Subject: Bash and $HOME env var quirks To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hey all! Usually, I don't alter my working environment from factory default just because it's usually fine the way it is, but this time I thought I might tweak my bash prompt a bit. And I had a couple of questions about how the bash prompt '/w' option works and how it applies to the $HOME enviroment variable. First of all, if I set my prompt to PS1='\h:\w$ ' my prompt usually ends up looking like this: bsd:/usr/home/user$ rather than bsd:~$ I think this has to do with the $HOME enviroment variable being set to /home/user and not /usr/home/user, bash might not like because /home is a link to /user/home. After I set $HOME to /usr/home/user then things look okay. I'm wonder what initially sets the $HOME variable to /home/user rather than /usr/home/user. I've taken a look at my . files and I didn't see anything there that sets $HOME to /home/user so I'm thinking it's a global thing. TIA, Joey __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message