From owner-freebsd-questions Mon Oct 18 10:53:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from phoenix.volant.org (phoenix.volant.org [205.179.79.193]) by hub.freebsd.org (Postfix) with ESMTP id 0AB2814CC7 for ; Mon, 18 Oct 1999 10:53:14 -0700 (PDT) (envelope-from patl@phoenix.volant.org) Received: from asimov.phoenix.volant.org ([205.179.79.65]) by phoenix.volant.org with smtp (Exim 1.92 #8) id 11dGy9-0004ZR-00; Mon, 18 Oct 1999 10:53:13 -0700 Received: from localhost by asimov.phoenix.volant.org (SMI-8.6/SMI-SVR4) id KAA06295; Mon, 18 Oct 1999 10:53:09 -0700 Date: Mon, 18 Oct 1999 10:53:09 -0700 (PDT) From: patl@phoenix.volant.org Reply-To: patl@phoenix.volant.org Subject: Re: Bash prompt (/usr/home/username instead of ~/) To: cjclark@home.com Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <199910181749.NAA13522@cc942873-a.ewndsr1.nj.home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 18-Oct-99 at 10:48, Crist J. Clark (cjc@cc942873-a.ewndsr1.nj.home.com) wrote: > Arcady Genkin wrote, > > Thanks, Sheldon, but that's not quite what I wanted. \W gives me only > > the trailing name of the current directory. So if I am in ~/src/csc/, > > it gives me "door:csc$". > > > > My problem was that with \w it says "/usr/home/antipode/src/csc", > > whereas I would like it to say "~/src/csc". And the funny part of the > > problem was that it starts to behave the way I want it to after I > > simply type "cd" w/o arguments (then bash replaces "u/h/antipode" with > > "~"). > > What happens if you put a 'cd' command right after the prompt is set? Shouldn't that be 'cd .' just in case you aren't in your home directory? -Pat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message