Date: 18 Oct 1999 15:10:10 -0400 From: Arcady Genkin <a.genkin@utoronto.ca> To: freebsd-questions@freebsd.org Subject: Re: Bash prompt (/usr/home/username instead of ~/) Message-ID: <87so38wkml.fsf@main.wgaf.net> In-Reply-To: "Crist J. Clark"'s message of "Mon, 18 Oct 1999 13:49:40 -0400 (EDT)" References: <199910181749.NAA13522@cc942873-a.ewndsr1.nj.home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87so38wkml.fsf>