Date: Mon, 18 Oct 1999 13:49:40 -0400 (EDT) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: a.genkin@utoronto.ca (Arcady Genkin) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Bash prompt (/usr/home/username instead of ~/) Message-ID: <199910181749.NAA13522@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <871zasyhas.fsf@main.wgaf.net> from Arcady Genkin at "Oct 18, 1999 08:39:07 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Arcady Genkin wrote, > 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 > "~"). What happens if you put a 'cd' command right after the prompt is set? -- Crist J. Clark cjclark@home.com 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?199910181749.NAA13522>