Subject: bash prompt
To: None <netbsd-users@netbsd.org>
From: Zafer Aydogan <zafer@gmx.org>
List: netbsd-users
Date: 01/11/2005 18:20:17
Hello Mailing-List,

Installing bash brings only a prompt that shows "bash-2.05$" 

Therefore I set in .profile
export PS1="\u@\h: \w> "
Then my prompt shows:

zafer@moe: ~>

This is fine, but if I su to root, I get
the same prompt ending with >.

root@moe: /etc/>

How can I bringt bash to change the shell prompt to end with # 

root@moe: ~ #

when I change from a user to root? 

Thanks, Zafer.

ps: Isn't it more userfriendly to set a useful default prompt, when
installing bash like zafer@moe: ~ $ instead of bash-2.05b$ ?