![](https://seccdn.libravatar.org/avatar/c0d7969670dd5fe9340816cee0058278.jpg?s=120&d=mm&r=g)
The only difference between "su" and "su -" is that "su" does not load root's environment. So I would assume that "su" gets whatever prompt is set as default for all users. Adam On Wed, 24 Oct 2001, Michael Grau wrote:
In /etc/profile.local
I have PS1 defined as
PS1=`echo '\n\h:\033[1m$PWD\033[0m\n# '` <- for root (if UID = 0) PS1=`echo '\n\h:\033[1m$PWD\033[0m\n> '` <- for others
How do I change the command line prompt when I "su" as opposed to "su -"?
Sorry for the newbie question ...
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
ZorPrime09 a.k.a. Gendo_Ikari ICQ# 7173036
participants (1)
-
Gendo_Ikari