From owner-freebsd-questions Mon Oct 18 1:45: 9 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp11.bellglobal.com (smtp11.bellglobal.com [204.101.251.53]) by hub.freebsd.org (Postfix) with ESMTP id DAE7814E96 for ; Mon, 18 Oct 1999 01:45:06 -0700 (PDT) (envelope-from a.genkin@utoronto.ca) Received: from main.wgaf.net (HSE-TOR-ppp22851.sympatico.ca [209.226.71.141]) by smtp11.bellglobal.com (8.8.5/8.8.5) with ESMTP id EAA16240 for ; Mon, 18 Oct 1999 04:49:00 -0400 (EDT) Received: from antipode by main.wgaf.net with local (Exim 2.05 #1 (Debian)) id 11d9Y0-0004nB-00; Mon, 18 Oct 1999 05:57:44 -0400 To: freebsd-questions@freebsd.org Subject: Bash prompt (/usr/home/username instead of ~/) X-Home-Page: http://wgaf.dyndns.org Organization: Wgaf From: Arcady Genkin Date: 18 Oct 1999 05:57:44 -0400 Message-ID: <87aephxa7b.fsf@main.wgaf.net> Lines: 21 User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) XEmacs/21.1 (Biscayne) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all: bash, while starting in my home directory, shows the expanded path-name in the beginning: door:/usr/home/antiponde $ 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? I works for "root", though: when I "su", and run bash, I get "main:~/ #" right away, as apposed to "main:/root/ #". Could someone point me in the right direction, please? -- 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