Skip site navigation (1)Skip section navigation (2)
Date:      18 Oct 1999 05:57:44 -0400
From:      Arcady Genkin <a.genkin@utoronto.ca>
To:        freebsd-questions@freebsd.org
Subject:   Bash prompt (/usr/home/username instead of ~/)
Message-ID:  <87aephxa7b.fsf@main.wgaf.net>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87aephxa7b.fsf>