Hi all. I have many OpenBSD machines and I have customized the prompt to
display time, user currently logged in and server name. My question is
when I log in as a user and I su to root the root prompt does not seem
to use my customized prompt. BTW, I'm using Bash 2.05 static. Now I have
changed the shell to bash for the root account. The customized prompt
displays fine as long as I do not su in. Below is the code I used in the
file .profile and what is lookes like after being parsed.
Any ideas? Am I going about this wrong or missing a file to change?
.profile
--------
PS1="\n\@ [\u]\n\h:"
After being parsed
01:10 PM [username]
servername: