From owner-freebsd-questions Mon Oct 18 3: 1:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id AAFA414A2B for ; Mon, 18 Oct 1999 03:01:32 -0700 (PDT) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.040 #1) id 11d9bE-0001rf-00; Mon, 18 Oct 1999 12:01:04 +0200 From: Sheldon Hearn To: Arcady Genkin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Bash prompt (/usr/home/username instead of ~/) In-reply-to: Your message of "18 Oct 1999 05:57:44 -0400." <87aephxa7b.fsf@main.wgaf.net> Date: Mon, 18 Oct 1999 12:01:04 +0200 Message-ID: <7170.940240864@axl.noc.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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