On 2003-02-17 10:46, David Banning <[EMAIL PROTECTED]> wrote:
> > The way that the shell prompt is set depends on the particular shell.
> > What shell does your `david' user have? What shell does `root' have?
>
> they both use bash.
>
> >
> > > How do I get the super-user prompt when I just use the "su" command
> > > rather than the full "su -" command?
> >
> > The default behavior of su is to run an interactive, but not login,
> > shell AFAIK. How to set the prompt for interactive invocations of
> > your root user's shell depends on the shell.
> I took out my "PS1=david$" line in my .profile, and now I have it working
> again. My user shell is simply "bash-2.03$" and my su shell is
> "su-2.03#".
>
> Thanks for your help.
You're welcome :)
Don't explicitly set a '$' in your PS1 if you want bash to have
control of your superuser/simple-user changes. Use this instead:
PS1='david\$'
and see if it looks better. For more \X escape sequences that you can
use in your PS1, look at the manpage of bash.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message