Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Oct 1999 10:53:09 -0700 (PDT)
From:      patl@phoenix.volant.org
To:        cjclark@home.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Bash prompt (/usr/home/username instead of ~/)
Message-ID:  <ML-3.4.940269189.5758.patl@asimov>
In-Reply-To: <199910181749.NAA13522@cc942873-a.ewndsr1.nj.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ML-3.4.940269189.5758.patl>