Date: Wed, 15 Apr 1998 09:47:01 -0400 (EDT) From: Tim Gustafson <guff@falconsoft.com> To: freebsd-questions@FreeBSD.ORG Subject: Root Prompt Message-ID: <Pine.BSF.3.96.980415094449.11978B-100000@falconsoft.com>
next in thread | raw e-mail | index | archive | help
I'd like to change my root prompt, but even when I put the following in my /root/.profile, I still get a bash# instead of user@host: # set prompt: ``username@hostname$ '' PS1="`whoami`@`hostname | sed 's/\..*//'`" case `id -u` in 0) PS1="${PS1}# ";; *) PS1="${PS1}$ ";; esac I'm using bash for my shell, and everything else about the user pofile is pretty much defaulted. In my personal user profile, this works fine. Is there something special I have to to to make it work in the root profile so that when I su myself, I keep the user@host prompt? tim 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?Pine.BSF.3.96.980415094449.11978B-100000>