From owner-freebsd-questions Mon Oct 18 10:57:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp11.bellglobal.com (smtp11.bellglobal.com [204.101.251.53]) by hub.freebsd.org (Postfix) with ESMTP id 47C4F14CC7 for ; Mon, 18 Oct 1999 10:57:32 -0700 (PDT) (envelope-from a.genkin@utoronto.ca) Received: from main.wgaf.net (HSE-TOR-ppp22851.sympatico.ca [209.226.71.141]) by smtp11.bellglobal.com (8.8.5/8.8.5) with ESMTP id OAA12547 for ; Mon, 18 Oct 1999 14:01:23 -0400 (EDT) Received: from antipode by main.wgaf.net with local (Exim 2.05 #1 (Debian)) id 11dIAc-0005PP-00; Mon, 18 Oct 1999 15:10:10 -0400 To: freebsd-questions@freebsd.org Subject: Re: Bash prompt (/usr/home/username instead of ~/) References: <199910181749.NAA13522@cc942873-a.ewndsr1.nj.home.com> Organization: Wgaf From: Arcady Genkin Date: 18 Oct 1999 15:10:10 -0400 In-Reply-To: "Crist J. Clark"'s message of "Mon, 18 Oct 1999 13:49:40 -0400 (EDT)" Message-ID: <87so38wkml.fsf@main.wgaf.net> Lines: 21 User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) XEmacs/21.1 (Biscayne) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Crist J. Clark" writes: > > 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? Now, why didn't I think about that myself! [leaves to check] It worked! Thanks! -- Arcady Genkin http://wgaf.dyndns.org "'What good is my pity? Is not the pity the cross upon which he who loves man is nailed?..'" (Zarathustra - F. Nietzsche) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message