Date: 18 Oct 1999 08:39:07 -0400 From: Arcady Genkin <a.genkin@utoronto.ca> To: freebsd-questions@freebsd.org Subject: Re: Bash prompt (/usr/home/username instead of ~/) Message-ID: <871zasyhas.fsf@main.wgaf.net> In-Reply-To: Sheldon Hearn's message of "Mon, 18 Oct 1999 12:01:04 %2B0200" References: <7170.940240864@axl.noc.iafrica.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Sheldon Hearn <sheldonh@uunet.co.za> writes: > On 18 Oct 1999 05:57:44 -0400, Arcady Genkin wrote: > > > while PS1 is set to '\h:\w\$ ' > > > Use \W instead of \w . 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 "~"). -- 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?871zasyhas.fsf>