Date: Mon, 18 Oct 1999 12:01:04 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: Arcady Genkin <a.genkin@utoronto.ca> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Bash prompt (/usr/home/username instead of ~/) Message-ID: <7170.940240864@axl.noc.iafrica.com> In-Reply-To: Your message of "18 Oct 1999 05:57:44 -0400." <87aephxa7b.fsf@main.wgaf.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 18 Oct 1999 05:57:44 -0400, Arcady Genkin wrote: > while PS1 is set as following to '\h:\w\$ ' > > Typing "cd" changes the prompt to "door:~/ $", which is a nicer > prompt. How can I make bash to display the short version of the > current directory from the beginning? Use \W instead of \w . Ciao, Sheldon. 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?7170.940240864>